Black Friday Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Remove Navigation in header on article post page

Home Forums Support Remove Navigation in header on article post page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #508332
    Ralf

    Hi Tom, Hi Leo,

    don’t know if i used the correct words…anyway..

    i used the following code to remove the menu on the blog page:

    .blog .main-navigation,
    .archive:not(.post-type-archive-product) .main-navigation {
    display: none;
    }

    BUT on the single post pages / article pages the navigation is still visible…

    How can i remove the Navigation on the single post page ?

    Thanks in advance
    -R

    GeneratePress 2.0.2
    GP Premium 1.5.6
    #508343
    Ralf

    PS: … or maybe you know a method, how the menu is working, when i use a one-page with hashtag-links and a seperat blog page… the menu doesn’t work on the blog-page – that’s why i wanna remove it there…

    #508413
    Leo
    Staff
    Customer Support

    Hi Ralf,

    Try this:

    .blog .main-navigation,
    .archive:not(.post-type-archive-product) .main-navigation,
    .single .main-navigation {
        display: none;
    }
    #508668
    Ralf

    Hi Leo,

    works ! … perfect support – as always

    Thank you !!!

    #508806
    Leo
    Staff
    Customer Support
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.