Post by crossbow » Thu Jun 12, 2014 5:25 am

I've got a strange one here....

I've got a category that I don't want displayed in the menu. So I didn't check the "top" button. But the category is still showing in the menu! I've tried unchecking some of the categories that I had on the menu and they still show...

I know that it was working sometime in the past, but the website has been modified a lot since then. Anyone can direct me to the file that might be affected or what might be causing it?

User avatar
New member

Posts

Joined
Tue Mar 18, 2014 6:29 am


Post by agrimabo » Thu Jun 12, 2014 2:55 pm

catalog\view\theme\default\template\common\header.tpl

Code: Select all

<?php foreach ($categories as $category) { ?>
    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
         ...
    </li>
<?php } ?>
You could wrap the <li> tag in an if statement, such as

Code: Select all

if ($category['name'] != 'Shoes') {

    <li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
         ...
    </li>

}
Pretty hacky though - I'd suggest you find out why the admin wont disable it....

Newbie

Posts

Joined
Fri Nov 01, 2013 8:04 am

Post by crossbow » Thu Jun 12, 2014 3:00 pm

thanks, that's what I'm trying to do, but no luck so far :/

User avatar
New member

Posts

Joined
Tue Mar 18, 2014 6:29 am

Who is online

Users browsing this forum: No registered users and 80 guests