0

Hi I'm trying to understand the main menu but it appears to be self populating with the product categories category plus a built in search API (All Products). The main menu also appears disabled in the blocks area? Can someone explain the mechanics behind this menu please?

Well it looked like from Category>Product category>Edit vocabulary there is an option for Taxonomy menu with a selection list showing Main Menu. I added a new Category to this same structure and now both my new category and the main menu have disappeared from the menu? I have tried "Select to rebuild the menu on submit." and also removed my new category from main menu... but still the original is missing.

3
  • If it's not a block it's most likely coming from page.tpl.php in omega_kickstart (or omega/alpha)
    – Clive
    Apr 30, 2014 at 8:37
  • 1
    I believe "it's generated by taxonomy_menu" is the answer you are looking for. Apr 30, 2014 at 8:39
  • Bojan: Please see my edit above... It appears broken good and proper now. Apr 30, 2014 at 8:46

1 Answer 1

0

You can see region--menu.tpl.php which is rendering main menu..

<div<?php print $attributes; ?>>   <div<?php print $content_attributes; ?>>
    <?php if ($main_menu || $secondary_menu): ?>
    <nav class="navigation">
      <div class="primary-menu inline">
        <?php print theme('links__system_main_menu', array('prefix' => '<div>', 'links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix', 'main-menu')), 'heading' => array('text' => t('Main menu'),'level' => 'h2','class' => array('element-invisible')))); ?>
      </div>
      <div class="second-menu inline">
        <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix', 'secondary-menu')), 'heading' => array('text' => t('Secondary menu'),'level' => 'h2','class' => array('element-invisible')))); ?>
      </div>
    </nav>
    <?php endif; ?>
    <?php print $content; ?>   </div> </div>
1
  • This along with the Category main menu selection I think completes my answer. (Just adding here for reference) Apr 30, 2014 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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