[Resolved] Hide Mobile Header & Menu on Mobile

Home Forums Support [Resolved] Hide Mobile Header & Menu on Mobile

Home Forums Support Hide Mobile Header & Menu on Mobile

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #835112
    Rizki

    Hi there,

    How to disable header & menu on specific page on mobile ? I want just a content displayed without header on this page.

    #835377
    David
    Staff
    Customer Support

    Hi there,

    it requires some CSS eg.

    .postid-xx #mobile-header {
        display: none;
    }

    Just change the xx for that specific pages ID

    #835430
    Rizki

    Unfortunately it doesn’t work, header still exist for this page : https://bit.ly/2VPUSzR

    domain,com/wp-admin/post.php?post=871&action=edit => ID of the page is 871 right ?

    #835444
    David
    Staff
    Customer Support

    Hi there,

    ok so if its a post the CSS selector would be:

    .postid-xx #mobile-header

    #835637
    Rizki

    Hi David,

    The header still exist πŸ™‚

    #835656
    David
    Staff
    Customer Support

    I edited the code here:
    https://generatepress.com/forums/topic/hide-mobile-header-menu-on-mobile/#post-835377

    Try that. If it doesn’t work can you link me directly to the page. You can edit your original topic and change the site URL.

    #835659
    Rizki

    Hi David,

    I have changed the URL on original topic. And I have entered the CSS code like this : http://prntscr.com/mwe5aj an still doesn’t work.

    #835695
    David
    Staff
    Customer Support

    Right so it is a page lol – try this:

    .page-id-871 #mobile-header {
        display: none !important;
    }
    #835704
    Rizki

    Yeah it works πŸ™‚ I already said that it was a page πŸ˜€ But thank you so much for your amazing support.

    #835706
    David
    Staff
    Customer Support

    Haha – yeah my bad, i was running low on coffee…. glad you got it resolved.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.