• Resolved poppiesblooming

    (@poppiesblooming)


    I actually added this so I could remove parts of the menu from just ONE page. So the menu should be as usual on all the pages, but this ONE page I want the majority of the menu items not there. I could make it so the entire menu doesn’t show on that page and make a custom menu in the page code but how would I make it so only on that page the menu items don’t show?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author shazdeh

    (@shazdeh)

    That’s really easy to do. So we have this:

    
    is_page( 69 )
    

    Which means: show only on the page with the ID of 69. Now you just need to flip that logic:

    
    ! is_page( 69 )
    

    Meaning: show only if we’re not on the page with the ID of 69. You can use that for all of your menu items that you don’t want in that particular page.

    Thread Starter poppiesblooming

    (@poppiesblooming)

    Ok, so I put this on the menu items I don’t want to show…

    ! is_page( 119136 )

    (that is the page number on our site)

    Thank YOU!

    Thread Starter poppiesblooming

    (@poppiesblooming)

    It worked perfectly
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make ONE page NOT have the main menu’ is closed to new replies.