Page 1 of 1

category displaying even thout "top" is not selected

Posted: Thu Jun 12, 2014 5:25 am
by crossbow
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?

Re: category displaying even thout "top" is not selected

Posted: Thu Jun 12, 2014 2:55 pm
by agrimabo
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....

Re: category displaying even thout "top" is not selected

Posted: Thu Jun 12, 2014 3:00 pm
by crossbow
thanks, that's what I'm trying to do, but no luck so far :/