• Hi – I’m creating a static front page that will allow viewers to choose between three paths – portfolios, workshops and blog; I want to hide the navigational menu on this page. I found this code by looking into the forums but it returns a blank white page in browser. If I don’t have this code in my header.php file, the page shows fine but with menus. What can I change here to have just the menu bar hidden from view?
    This gives a blank page for me (when I entered my page name which is Home2, in place of front_page…

    <?php if ( is_front_page() ) {
    echo ‘Foo’;
    }
    else
    {
    wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) );
    }
    ?>

Viewing 1 replies (of 1 total)
  • Thread Starter bstharp

    (@bstharp)

    I don’t mean in place of front_page but inside the parenthesis after it! I have since found that by moving it to another spot on the page it’s almost working but not entirely…still need help. thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Hiding Static Front Page Menu’ is closed to new replies.