I'm very new to Magento, so this might be VERY basic...

Using the demo data provided by Magento, the Top Navigation bar includes "Men", "Accessories", "Home & Decor" etc. Each heading has subcategories, so when you hover over, you get the drop down list. However, at the top of this list (for example) is "View All Home & Decor" etc.

Is there any way to customise this (or even remove it)? It works okay for some of the headings but "View All Sale" just sounds daft...

enter image description here

  • provide some links or codes. Question is not clear Aug 29, 2014 at 12:49
  • I'm not sure which part of the question is unclear... can you clarify? Fabian Blechschmidt who answered (below) understood it completely. Sep 1, 2014 at 8:17
  • I think when you ask this question, the picture was not there. weren't it ? Sep 1, 2014 at 8:21
  • No that was added later. I'll do that in future. Is that all that was needed? Sep 1, 2014 at 8:24
  • the question is unclear of course . Even though you have added that image, I cant see categories that are mentioned in your question. The main part is, it is not at all clear what is ` "View All Products" / "View All Stockists"` in your question, without providing any image or relevant code. @Fabian understood it because, he have lot of experience in magento. Every one here not like so. I hope you understand. So before post, first read your question as a newbie and think whether it is understandable :) Sep 1, 2014 at 8:33

1 Answer 1


This link is generated here app/design/frontend/rwd/default/template/page/html/topmenu/renderer.phtml:66

To change this, you want to copy this template in your own theme and then remove line 62 to 71

if (!empty($_hasChildren)) {
    $html .= '<ul class="level'. $childLevel .'">';
    $html .=     '<li class="level'. $nextChildLevel .'">';
    $html .=         '<a class="level'. $nextChildLevel .'" href="'. $child->getUrl() .'">';
    $html .=             $this->__('View All ') . $this->escapeHtml($this->__($child->getName()));
    $html .=         '</a>';
    $html .=     '</li>';
    $html .=     $this->render($child, $childrenWrapClass);
    $html .= '</ul>';
  • The above answer worked perfectly. Is there any way to customise it so that the drop-down works differently for different menu heading? ie: if Level 0 Category = "xxx" then... DO THIS else... DO SOMETHING ELSE Aug 29, 2014 at 14:56
  • Of course, theoretical you can just check ´$child->getLevel()` if this doesnt work, check the table catalog_category_entity, how the level column is named. Aug 31, 2014 at 11:48
  • What is the best way of checking '$child->getLevel()'? Sep 1, 2014 at 8:19
  • I don't understand the question. $child->getLevel() >= 0!? :-) Sep 1, 2014 at 10:38
  • Sorry, I understand what you meant now... but I think I didn't make myself clear (again). Is there a way of checking the top name of the Category (ie: level 0)? I would like to have different drop downs for each category. Sep 1, 2014 at 12:30

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.