Navigation Issue
-
Hello everyone! I’m still fairly green when it comes to wordpress.org, and I just switched over from wordpress.com, but i seem to be having issues with the navigation. For some weird reason, my navigation bar isn’t showing up at all. I set the primary menu and everything,but for some reason it isnt showing up at all. I’m using the Hemmingway theme. and I’ll paste the navigation php code below, as I have a feelng it may just be a coding error I overlooked.
site: http://riversidenaturecenter.org/index/
<ul class=”blog-menu”>
<?php if ( has_nav_menu( ‘primary’ ) ) {
wp_nav_menu( array(
‘container’ => ”,
‘items_wrap’ => ‘%3$s’,
‘theme_location’ => ‘primary’,
‘walker’ => new hemingway_nav_walker) ); } else {
wp_list_pages( array(
‘container’ => ”,
‘title_li’ => ”));
} ?>
<div class=”clear”></div>
<ul class=”mobile-menu”>
<?php if ( has_nav_menu( ‘primary’ ) ) {
wp_nav_menu( array(
‘container’ => ”,
‘items_wrap’ => ‘%3$s’,
‘theme_location’ => ‘primary’,
‘walker’ => new hemingway_nav_walker) ); } else {
wp_list_pages( array(
‘container’ => ”,
‘title_li’ => ”));
} ?>
</div> <!– /navigation-inner –>
</div> <!– /navigation –>
-
what links are you expecting to see in the menu?
does your site have any published pages?
if yes, try to unset ‘primary’ from the menu;
this should activate a simple automatic page list as menu…https://codex.wordpress.org/Appearance_Menus_Screen
does the problem continue if you temporarily deactivate all plugins?
possibly try to ask in your theme’s forum at
https://wordpress.org/support/theme/hemingwayI would like to see my primary menu. It has links to my home page, about page, etc., etc.
Yes, it has about 56 published pages
Yay! unsetting did the job. I suppose that gets me a bit closer, however, I would still like to set my custom menu as primary. is there any way to do that?
I also tried deactivating plugins, but that didn’t do anything
Okay, I’ll repost this as well in that forum.
Thanks for being so helpful and responding so quickly!
The topic ‘Navigation Issue’ is closed to new replies.