Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Post Navigation in Sticky Navigation (mobile view)

  • Hi,
    I’ve implemented this functionality that you posted in your youtube channel.

    It is working great (see here) in desktop view, but I cannot get rid of the mobile menu in the mobile view.

    For the desktop I’ve used this CSS:

    body.single .main-navigation:not(.navigation-stick) .sticky-post-navigation {
        display: none;
    }
    body.single .main-navigation.navigation-stick .sticky-post-navigation {
        width: 100%;
    }
    body.single .navigation-stick .navigation-branding,
    body.single .navigation-stick .main-nav,
    body.single .navigation-stick .menu-bar-items 	{
    	display: none;	
    }
    

    Can you tell me what CSS should I use for the mobile view please?

    Thanks

  • but I cannot get rid of the mobile menu in the mobile view.

    Just to confirm you do not want the hamburger icon below the sticky nav?

    If so, here’s the CSS:

    @media(max-width: 768px) { 
    #sticky-navigation button.menu-toggle {
        display: none !important;
    }
    }
  • Oooops.
    I was missing the id.

    Sorry about that and thanks!

  • You are welcome   🙂

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