Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    May 2009
    Location
    Kelso, WA
    Posts
    132
    Plugin Contributions
    0

    Default Category Links below the header

    How can I move these to the footer? I like them, but they're too much up top.

    Thanks,
    Christy

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category Links below the header

    Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_header.php) and find the part where it reads:

    Code:
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    Copy it.

    Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_footer.php) and paste in in just above where it says:

    Code:
    <!--eof-navigation display -->

  3. #3
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Category Links below the header

    Quote Originally Posted by niccol View Post

    Find a file called tpl_header.php (includes/templates/yourtemplate/common/tpl_footer.php) ...
    I think nick means:

    Find a file called tpl_footer.php (includes/templates/yourtemplate/common/tpl_footer.php) ...
    20 years a Zencart User

  4. #4
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,267
    Plugin Contributions
    3

    Default Re: Category Links below the header

    Also... if you have not edited the tpl_header and tpl_footer files before, you probably will not have these in your CUSTOM TEMPLATE folder...

    As we have not seen your website, I do not know what template you are using, and therefore do not know what your template's folders are called.

    Nick is perfectly correct when he says that the edited FOOTER file must be placed in :-
    includes/templates/yourtemplate/common/tpl_footer.php

    ... but you may not even have a folder called /common/ in your custom template yet.... let alone a tpl_footer.php file in there.

    What nick is saying is that you need to use the zencart OVER-RIDES system for these types of edits. The over-rides system is an important aspect of zencart as it allows you to modify COPIES of important files, without altering the code in the CORE file.

    Before you make any edits to a core file, let us know what your CUSTOM template is called. Then we can explain things a little better...
    20 years a Zencart User

  5. #5
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category Links below the header



    And I think what schoolboy is saying in his usual kind manner is that my answer was a bit sloppy! And he is right. All his points about the over-ride system are valid and important. Getting to grips with it will help you no end.


  6. #6
    Join Date
    May 2009
    Location
    Kelso, WA
    Posts
    132
    Plugin Contributions
    0

    Default Re: Category Links below the header

    Thanks guys! That was perfect!

  7. #7
    Join Date
    May 2009
    Location
    Kelso, WA
    Posts
    132
    Plugin Contributions
    0

    Default Re: Category Links below the header

    Uh oh...something didn't work...at least I think it was something with this. Now I'm getting blank pages if I go to any of the category pages. I even put the old header and footer files back in and it's not working

  8. #8
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category Links below the header

    Sorry, Christy, but I don't think that has to do with this alteration. I may be wrong but I do not think so.

    A couple of reasons. There is nothing in the code that is dependent on the page. So, if it works on one page it will work on all pages.

    If you have returned to the original files then it is unlikely to be anything in the changes.

    It is much more likely that something else has gone astray! What else were you doing before it happened?

  9. #9
    Join Date
    May 2009
    Location
    Kelso, WA
    Posts
    132
    Plugin Contributions
    0

    Default Re: Category Links below the header

    The only other thing I was doing was entering category and product information with some basic html. I even tried taking all of the html out and loading a blank category with just an image, but got nothing. Weird. Wondering if I'm going to have to start over.

  10. #10
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Category Links below the header

    Well, don't give up yet, would be my advice.

    I am pretty sure it doesn't have to do with the alterations we made. I have a sneaking suspicion so put up with my questions....

    Is this only happening on the product_listing pages (the one with all the products in a category)?

    What does the home page look like? Is the category navigation where it should be?

    Can you post a URL so we can get to grips with it?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Insert Image with Links Below the Header
    By dosniner in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 19 Nov 2009, 10:59 PM
  2. remove category links from top of page below header
    By dellvostro in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 16 Oct 2008, 01:50 PM
  3. Center ez-pages links below header
    By jvanree in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Oct 2008, 11:46 AM
  4. Add extra links below the header..
    By vik007 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 23 Jun 2007, 10:35 PM
  5. Category names (links) appear below the verbage
    By jdsmith8 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Jan 2007, 02:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg