[Resolved] sticky nav not showing …

Home Forums Support [Resolved] sticky nav not showing …

Home Forums Support sticky nav not showing …

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #336970
    dasigna

    hi again,

    currently building a site where i am hiding the main (below header) navigation only on one page but keeping the sticky with

    nav#site-navigation.main-navigation{display:none;}

    to get access to the slideout-nav after scrolling a bit. this worked until update to GPpro 1.3.1 – since then, the sticky navigation also is hidden with this … (showed up before)

    somebody please might tell me what has changed to cause this??

    thanks in advance

    EDIT:
    affects only desktop – fine for mobile.

    #337010
    Leo
    Staff
    Customer Support

    Hi there,

    So you are wanting to hide the navigation until scroll? If so can you give this a shot?
    https://generatepress.com/forums/topic/hide-nav-top-menu-logo-until-scroll/#post-197136

    #337016
    Tom
    Lead Developer
    Lead Developer

    Just to confirm, you want the navigation to be hidden until you begin to scroll and the sticky navigation displays, correct?

    #337026
    dasigna

    @tom – jep. correct.

    the css from above did this job perfectly until latest update. now it kills the sticky too …???


    @leo
    – thanks, but seems way too complicated compared to how easy it was before … πŸ™‚

    #337111
    Tom
    Lead Developer
    Lead Developer

    The sticky navigation was completely overwritten (waaaay more efficient now).

    Try this:

    #site-navigation:not(.navigation-stick) {
        visibility: hidden;
        height: 0;
        overflow: hidden;
    }
    #337424
    dasigna

    thanks tom – works flawlessly. great.

    jep, nav seems to be rewritten and indeed efficient as well as more ‘fluid’ – but at the moment more a bit more tricky to get behind…
    having headaches to update one or two sites with nav-tweaks too πŸ™‚

    #337467
    Tom
    Lead Developer
    Lead Developer

    Sorry about that – shouldn’t change again now, the code there now is solid and will be there for the long haul πŸ™‚

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