different menu for home page and inner pages
-
I have a static home page (file name home.php, template name home) that has a different menu than the inner pages.
I use this code in my header.php:if ( is_front_page() ) { wp_nav_menu( array('menu' => 'Header Menu') ); } else { wp_nav_menu( array('menu' => 'Inner Page Menu') ); }
This worked until a short while ago, and now the site is using the inner page menu on the home page.
I tested my header.php with is_front_page(), is_home() and is_page_template( ‘home.php’ ), and found that is_front_page() is the conditional tag that is referencing my home page.
What happened to my menus?
- The topic ‘different menu for home page and inner pages’ is closed to new replies.