[Support request] Sticky Navigation

Home Forums Support [Support request] Sticky Navigation

Home Forums Support Sticky Navigation

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #581576
    gbebrokers

    Hi. I would like to add both Primary navigation and Secondary Navigation to Sticky navigation. How Can I do this?

    GeneratePress 2.1.2
    #581587
    David
    Staff
    Customer Support

    Hi, there isn’t currently an option to do this – things get a little weird when sticking two elements.

    #581590
    gbebrokers

    Thanks for your reply. Is there any other option that keeps Primary and Secondary Navigation on when scrolling down?

    #581765
    David
    Staff
    Customer Support

    Experimenting but you could try setting the sticky for mobile only. And adding this CSS for desktop and tablet

    @media (min-width: 768px) {
    	.secondary-navigation {
    		position: fixed;
    		width: 100%;
    	}
    	.main-navigation {
    		position: fixed;
    		width: 100%;
    		top: 40px;
    	}
    	.site {
    		margin-top: 124px;
    	}
    }
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.