Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010
    Posts
    13
    Plugin Contributions
    0

    Default Remove items from Nav Menu

    I wish to remove menu choices from the main nav menu at the top of my page. I have read about changing menu names but nothing about removing any of the choices

    If you go to Scumbee I want to remove New Products and Specials from the menu

    Thanks

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Remove items from Nav Menu

    I'd use the Developers Tool Kit to search for top-nav-right to see where those list items are coming from.

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

    Default Re: Remove items from Nav Menu

    Quote Originally Posted by cspgsl View Post
    I wish to remove menu choices from the main nav menu at the top of my page. I have read about changing menu names but nothing about removing any of the choices

    If you go to Scumbee I want to remove New Products and Specials from the menu

    Thanks
    As you are using the PURE_BLUE template, you have to manually edit the following file:

    includes/templates/pure_blue/templates/tpl_top_nav.php

    Do not DELETE the relevant lines... Just COMMENT them out.

    They currently look like this:

    Around Lines 22 to 32

    PHP Code:
    <?php
    if ($current_page_base == 'products_new') {    $active    'tab_active'
        } else { 
    $active '';
    }
    ?>
            <li id="<?php echo $active;?>"><a href="index.php?main_page=products_new"><?php echo TOP_MENU_NEW_PRODUCTS;?></a></li>

    <?php
    if ($current_page_base == 'specials') { $active 'tab_active'
        } else { 
    $active '';
    }
    ?>
            <li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li>
    Just add COMMENT tags (<!-- DISABLED START ... DISABLED END -->) as seen below:

    HTML Code:
    <!-- DISABLED START<?php
    if ($current_page_base == 'products_new') {	$active	= 'tab_active'; 
    	} else { $active = '';
    }?>
    		<li id="<?php echo $active;?>"><a href="index.php?main_page=products_new"><?php echo TOP_MENU_NEW_PRODUCTS;?></a></li>
    
    <?php
    if ($current_page_base == 'specials') { $active = 'tab_active'; 
    	} else { $active = '';
    }?>
    		<li id="<?php echo $active;?>"><a href="index.php?main_page=specials"><?php echo TOP_MENU_SPECIALS;?></a></li> DISABLED END -->
    20 years a Zencart User

  4. #4
    Join Date
    Mar 2010
    Posts
    13
    Plugin Contributions
    0

    Default Re: Remove items from Nav Menu

    Would you believe I did a search for that code and still couldn't find it...

    Thanks for the pointer

  5. #5
    Join Date
    Mar 2009
    Posts
    108
    Plugin Contributions
    0

    Default Re: Remove items from Nav Menu

    Sorry to bring up an old thread but I thought asking here may help somebody searching in the future by having the answers in one place. Mine is a pure blue template too.

    I am not sure what the thing I want to change is called ? There is a bar ( for lack of knowing what to call it ) under the nav menu and it has a search and it shows the cart and currency and language. How could I remove that bar ?

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

    Default Re: Remove items from Nav Menu

    Quote Originally Posted by Trees2wood View Post
    Sorry to bring up an old thread but I thought asking here may help somebody searching in the future by having the answers in one place. Mine is a pure blue template too.

    I am not sure what the thing I want to change is called ? There is a bar ( for lack of knowing what to call it ) under the nav menu and it has a search and it shows the cart and currency and language. How could I remove that bar ?

    Add this to the bottom of stylesheet.css

    #tools_wrapper {display:none;}
    20 years a Zencart User

 

 

Similar Threads

  1. Adding my own menu items to the nav
    By Momof9Blessings in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jul 2016, 05:01 PM
  2. v154 removing menu items from header menu
    By Awalji in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Jun 2015, 08:00 PM
  3. My header nav menu items are squished
    By samantha178 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Sep 2013, 09:13 AM
  4. v151 Remove/edit items in nav bar
    By DeeL in forum Addon Templates
    Replies: 21
    Last Post: 23 Mar 2013, 10:05 AM
  5. Remove ... from nav links
    By geeker in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 22 Mar 2011, 05:00 PM

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