Results 1 to 4 of 4
  1. #1
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    How to show Categories links in footer? Main menu of header?

    Hi,
    I need to show the Categories link set, that is what is normally the content of the categories tabs menu portion of the header in either
    1. the footer, or...
    2. in the header in the main menu section, that is on the same line following the other links.

    I'd also like to put the logo & the bread crumb nav into the left column, with, I guess, each 'crumb' on a new line. This w/ no tag line in the header, so that essentially the only portion of the main menu used would be the main menu div.

    Any zen masters w/ suggestions on the best way to do this?

    Thx!

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How to show Categories links in footer? Main menu of header?

    Find this section of your tpl_header.php:

    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-->
    Move it to your tpl_footer.php


    (NOTE: have not actually tried that, but it should work in theory )


    WHOOPS! I grabbed the ez-pages instead of the cat-tabs- the right code is there now .
    Last edited by Kim; 24 May 2006 at 05:58 PM.

  3. #3
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: How to show Categories links in footer? Main menu of header?

    Thanks Kim.
    I had just successfully gotten the Cat. link set into the footer & was about to post that I had when yours came through.

    As I wasn't quite totally happy w/ what I had, I tried your sugg. but I couldn't get it to work. Tried hacking it around a bit but no luck, even though it looked to me like it should.

    What I got to work was this (adapted from tpl_modules_categories_tabs.php):
    Code:
    <!--bof-navigation display -->
    <div id="navSuppWrapper">
    <div id="navSupp">
    <ul>
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
    <?php
    	// Begin My customization to include Categories links
    	include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));
    	for ($i=0, $n=sizeof($links_list); $i<$n; $i++) { ?>
      	<li><?php echo $links_list[$i];?></li>
       <?php // End My customization
        ?>
    <?php } ?>
    <?php } ?>
    </ul>
    </div>
    </div>
    <!--eof-navigation display -->
    What I don't quite like is that this gives the links class="category-top". I think I'd like to have the links in both places, but give the footer links a oval 'buttony' bg image, so I'd like to be able to style them differently. Maybe I can address the footer ones special in my css somehow.

    Thanks for the help!

  4. #4
    Join Date
    May 2006
    Location
    Oregon, USA
    Posts
    33
    Plugin Contributions
    0

    Default Re: How to show Categories links in footer? Main menu of header?

    Kim--
    Just saw your 'whoops' edit & tried that. Got it to work but it writes the whole div so it creates an additional line. Also it needs Categories-Tabs set to show brings back the Categories-Tabs div as part of the header.
    As per above, I got it working but thought you might like to know my results.

    Now on to my other issues!
    FWIW, my link is http://ashlandheartandhands.com/cart/
    ... but be forwarned, it's pretty darn pink! (not my call!)

 

 

Similar Threads

  1. v154 Header Menu with Main categories
    By DarkMen in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Apr 2015, 02:50 AM
  2. v151 How to disable the Categories menu from above the header and show them in the header
    By kk2956 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Jun 2014, 11:14 PM
  3. Replies: 2
    Last Post: 6 Mar 2010, 07:05 PM
  4. How to change header and footer links?
    By undersun in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Nov 2009, 08:52 PM
  5. Easy way to edit header/top menu, footer menu, and sidebar menu?
    By templar2 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 30 Jun 2009, 11:14 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR