Thanks a lot marcelle42, you are right. Now it works 100% correct, all the attributes of the function are working. It was interesting that menu_class was working thou 😀
I was thinking if I should add menu items … Just a second
header.php
functions.php
At the moment I don’t have hosting and I’m working on wamp server on my machine :/ but if you don’t see any syntax or logic errors in the source what are the possible problems ?
Thanks for the fast answer but it’s still not working.
If I write this in the header.php:
wp_nav_menu(array('theme_location' => 'header-menu',
'container' => 'nav',
'container_id' => 'mainNav',
'container_class' => 'ulmenu'
));
It generates the default menu:
<div class="menu">
<ul>
<li class="page_item page-item-2">
<a href="http://localhost/CastingCartel/?page_id=2">Sample Page</a>
</li>
</ul>
</div>