[Resolved] Site Logo Disappears when Scrolling down

Home Forums Support [Resolved] Site Logo Disappears when Scrolling down

Home Forums Support Site Logo Disappears when Scrolling down

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1483146
    Jatin

    Hi Guys,

    My Site Logo on the Navigation Header while scrolling down the page disappears. Is there any way to make it sticky.

    View post on imgur.com

    #1483174
    David
    Staff
    Customer Support

    Hi there,

    go to Customizer > Layout > Sticky Navigation and make sure you have set a Logo there.

    #1483198
    Jatin

    Hi David, I have set the logo now and its switch ON. Does it take time. its still the same. Its fine on the Mobile but not on the Desktop. Site Link in Info box

    #1483433
    Leo
    Staff
    Customer Support

    What is the sticky navigation menu item height in the customizer set at?
    https://docs.generatepress.com/article/sticky-navigation/#menu-item-height

    #1484483
    Jatin

    got it. Thanks.

    #1485168
    Jatin

    Hi Leo,

    On the Mobile Phone, When i scroll down the page the site logo appears fine on the Navigation Header but the same size one as the main header. I want to show a slightly smaller site logo on the Mobile Phone when scrolling down the page. its fine on the desktop.

    #1485295
    Leo
    Staff
    Customer Support

    The logo you see on mobile is actually the mobile header logo:
    https://docs.generatepress.com/article/mobile-header/

    Can you try uploading a smaller one there?

    I think it would look slick if you just use the icon ๐Ÿ™‚

    #1485434
    Jatin

    I changed it now it looks good. But i want to have a normal one on the mobile site and when i scroll down then just an icon as you said.

    #1485831
    Leo
    Staff
    Customer Support

    That’s actually quite complicated and would require steps like this:
    https://generatepress.com/forums/topic/show-different-navigation-logo-for-mobile-sticky-menu/#post-621226

    #1487984
    Jatin

    Works fine. Thanks.

    #1488511
    Jatin

    Hi Leo, The Logo I updated as per code is not clickable ?

    #1488833
    Leo
    Staff
    Customer Support

    Any chance you can link us to the site in question?

    You can use the private information field.

    Let me know ๐Ÿ™‚

    #1489094
    Jatin

    Site link

    #1489158
    Leo
    Staff
    Customer Support

    Ahh the anchors are missing.

    Try this instead:

    add_action( 'generate_inside_mobile_header','lh_mobile_logos' );
    function lh_mobile_logos() {
    ?>
        <div class="site-logo mobile-header-logo">
            <a href="https://SITE-URL" title="SITE TITLE" rel="home">			
                <img src="URL TO MOBILE HEADER LOGO" alt="" />
            </a>
        </div>
        <div class="site-logo mobile-header-logo sticky-only">
            <a href="https://SITE-URL" title="SITE TITLE" rel="home">	
                <img src="URL TO STICKY MOBILE HEADER LOGO" alt="" />
            </a>
        </div>
    <?php
    }
Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.