Posted by ul71m0 on September 28, 2012 at 8:40am
Hello there, just started building my first drupal theme from html, i wanted to replace static menu with dynamic, so swaped this:
<ul class="menu">
<li><a href="index.html" class="active">Home</a></li>
<li><a href="collections.html">Collections</a></li>
<li><a href="aboutus.html">About Us</a></li>
<li><a href="askus.html">Ask Us</a></li>
</ul>with this:
<?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('class' => array('links', 'inline', 'menu', 'clearfix')), 'heading' => t('Main menu'))); ?>but my menu dont show up, its just empty div, i need to say that menu is working on base theme...
Comments
hello, did you clear drupal
hello,
did you clear drupal cache after changes?
Jes i have flushed all
Jes i have flushed all caches... I dunno what and how i did it but i changed back to batrik theme and than to mine and it worked, i think i didint touched anything, thanks for your effort.