That's driving me crazy, i couldn't find on the web the solution, Can someone help me please and tell me
I'm using this code on wordpress to load the menu: <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
How do i define the ul class? for example:
<
ul class="mymenu">
@realife You might have to change this a little bit.
<?php wp_nav_menu( array('theme_location' => 'header-menu', 'container' => '', 'items_wrap' => '<ul id="mymenu">%3$s</ul>' )); ?>
Still it's not working... :( Maybe I'm missing something in the functions.php?
That's weird, nobody did it before?
@realife Are you using a custom menu?
Yes
@realife All right. What is the name of your custom menu? Mine is "Main". Just replace that with yours and it should work.
<?php wp_nav_menu( array('menu' => 'Main', 'container' => '', 'items_wrap' => '<ul id="mymenu">%3$s</ul>' )); ?>
Show me what this outputs after you replace the name.
OK, you are crazy It's working... Thanks a lot ! =)
No problem.
That's driving me crazy, i couldn't find on the web the solution, Can someone help me please and tell me
I'm using this code on wordpress to load the menu: <?php wp_nav_menu( array( 'theme_location' => 'header-menu' ) ); ?>
How do i define the ul class? for example:
<
ul class="mymenu">
@realife You might have to change this a little bit.
Still it's not working... :( Maybe I'm missing something in the functions.php?
That's weird, nobody did it before?
@realife Are you using a custom menu?
Yes
@realife All right. What is the name of your custom menu? Mine is "Main". Just replace that with yours and it should work.
Show me what this outputs after you replace the name.
OK, you are crazy It's working... Thanks a lot ! =)
No problem.