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

    Hi guys,
    how can I hide the logo when the page loads and make it appear when I scroll? Exactly the other way as described in this ticket https://kriesi.at/support/topic/hide-logomenu-header-on-scroll-down/

    THX

    #1179291

    Hey burdeMedia,

    Did you try the code which is posted in the thread?

    Best regards,
    Rikard

    #1179795

    Yes, and it does exactly what it is supposed to do. Now I would like that the logo is only displayed when the user scrolls. Before that, the logo should be hidden.

    #1179881

    Hi burdeMedia,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1179907
    This reply has been marked as private.
    #1180176

    Hi burdeMedia,

    Please try to edit the page, then in the sidebar find Header visibility and transparency then select Header is invisible and appears once the users scrolls down .
    Let us know if this helps :)

    Best regards,
    Nikko

    #1180227

    That’s working. But that applies to the whole header. I want that only the logo is not visible at the beginning and appears after scrolling.

    #1180366

    Hi burdeMedia,

    I see, please try adding this code in functions.php:

    function add_hide_logo(){
    ?>
    <script>
    jQuery(window).scroll(function(){
      if(jQuery(this).scrollTop() < 200) jQuery('.logo').fadeOut('slow');
      if(jQuery(this).scrollTop() >= 200) jQuery('.logo').fadeIn('slow');
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_hide_logo');

    Hope it helps.

    Best regards,
    Nikko

    #1180664

    Nikko thx…
    that’s the right behavior. But it relates to the whole area. Logo including menu items.
    I want it to just be about the image / logo on the left. This should only appear in the yellow bar when you scroll

    https://www.almzeit.de/wp-content/uploads/Schnappschuss_020220_012705_PM.jpg

    #1180797

    Hi burdeMedia,

    The code only includes the logo however the part where it hides the whole header at the beginning is because of this setting: Header visibility and transparency is set to Header is invisible and appears once the users scrolls down, please set it back to No Transparency.

    Best regards,
    Nikko

    #1180811

    Ahhh sure….
    Thx! That is working.

    Regards,
    Andy

    #1181034

    Hi burdeMedia,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1182289

    Hi Guys,
    the whole thing now works for the desktop version. On the smartphone, however, the complete yellow bar disappears after the page has been loaded. How do I get the same settings here as on the desktop version?

    #1183040

    Hi burdeMedia,

    Try adding this CSS code in Quick CSS:

    @media only screen and (max-width:767px) {
      #header_main,
      .responsive #top #wrap_all .main_menu {
        height: 40px !important;
        top: 0 !important;
      }
    
      .responsive #top #header_main > .container .main_menu .av-main-nav > li > a, 
      .responsive #top #wrap_all .av-logo-container {
        height: 40px !important;
        line-height: 40px !important;
      }
    }

    Best regards,
    Nikko

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