custom menu not working
-
i’m using this theme on a new version of a site that i’m building here.
my problem is that i created a menu called “topnavmenu”.
then, as instructed in every tutorial i read, i added this to the functions.php file:
if ( function_exists( 'register_nav_menu' ) ) { register_nav_menu( 'topnavmenu', 'topnavmenu' ); }then i added this to the header.php file
<div class="menu"> <ul> <?php wp_nav_menu( array('menu' => 'topnavmenu' )); ?> </ul>yet no menu appears at the top of the site?! what am i missing?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘custom menu not working’ is closed to new replies.