1

In Catalog -> Manage categories i have set "Include in Navigation Menu" No for contact us but still it displays in the menu. For other categories it works.

From the database level i went to catalog_category_flat_store_1 and changed include in menu to 0 for the contact us entity id and it worked. Still if i refresh the indexes it keeps appearing in the menu. How can i set include in menu to 0 permanently for contact us?

========update===================

I disabled my 3rd party extension sm megamenu and still contact us is there.

  • reindex and clear cache and try again – Prashant Valanda May 4 '16 at 10:59
  • I tried. Still doesn't work. I think a default value gets applied for catalog_category_flat_store_1 include_in_menu for that entity_id – Lakshin Karunaratne May 4 '16 at 11:13
  • Do you have any navigation extension? – Prashant Valanda May 4 '16 at 11:18
  • I have something called sm megamenu. But i'm doing all the editing from manage categories. – Lakshin Karunaratne May 4 '16 at 11:24
  • either delete or rename var directory. – Ashish Madankar M2 Professiona May 4 '16 at 11:24
1

By default you can't have custom links in main navigation. You should remove this link from the additional module called SM Megamenu. Then try to clear your cache.

| improve this answer | |
  • i checked in it also. But there was nothing called contact us in it – Lakshin Karunaratne May 4 '16 at 11:31
1

For now i did a small code change to get it working.

design/frontend/theme/default/template/catalog/navigation/top.phtml in about line 164 i changed the code to this. (Added a simple if condition wrapping draw item)

foreach ( $this->getStoreCategories() as $_category ){
    if($_category->getName() !== 'Contact Us'){
        echo $this->drawItem($_category);
    }
}  
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.