• ericreynolds007

    (@ericreynolds007)


    I know that in order to hide a WP horizontal menu on my home page, but still display it on the rest of my site pages, I need to use a conditional tag. Unfortunately, I am not a developer and I need some help.

    So, how would I code “if home page, do not display horizontal menu?”

Viewing 4 replies - 1 through 4 (of 4 total)
  • GabrielCol

    (@gabrielcol)

    Try this:

    <?php if(!is_home()): ?>
      // your menu code here
     <?php endif; ?>

    Thread Starter ericreynolds007

    (@ericreynolds007)

    Thanks Gabriel. Does this code indicate that the menu is not to load for the home page? MY guess is that the “!” indicates this.

    GabrielCol

    (@gabrielcol)

    That’s right, it means “if is not home” ??

    Thread Starter ericreynolds007

    (@ericreynolds007)

    Thanks for your patience Gabriel. You must be a teacher. I am looking forward to learning php. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding Horizontal Menu on Home Page’ is closed to new replies.