Tagged: 

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #925244

    Since the last update, the header menu is not sticky. It stays stuck at the top and is not accessible as you scroll.

    I also notice this on other Enfold sites like: http://chicagocounselingandtherapy.com/

    #925245

    It also would collapse and minimize the top to only showing the smaller logo and menu button.

    #925384

    Hi,

    By the default the header is sticky only in desktop and not in mobile device. Can you try adding this code at the bottom of functions.php:

    function add_custom_script(){
    ?>
    <script>
    var $document = $(document),
        $element = $('#header'),
        className = 'hasScrolled';
    
    $document.scroll(function() {
      if ($document.scrollTop() >= 50) {
        $element.addClass(className);
      } else {
        $element.removeClass(className);
      }
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    then add this css code in Quick CSS (located in Enfold > General Styling):

    @media only screen and (max-width:767px) {
      .responsive #top #header.hasScrolled .logo {
        height: 50px !important;
      }
    
      .responsive #top #header.hasScrolled .container.av-logo-container, 
      .responsive #top #header.hasScrolled .logo a,
      .responsive #top #header.hasScrolled .logo a img {
        height: 50px !important;
        line-height: 50px !important;
      }
    
      #top #header.hasScrolled #avia-menu > li > a {
        height: 50px !important;
        line-height: 50px !important;
      }
    }

    Let us know if this helps :)

    Best regards,
    Nikko

    #925733

    I don’t want to make these changes prior to saying this. This issue was not like this prior to the last update couple of updates. I did a rollback on my testing site to a backup from a month ago and the header would still show the menu option as the user scrolled (it would shrink though). I feel like this is linked to the issues people are reporting with the menu bar on the desktop. If you still think I should make these changes, let me know.

    Appreciatively,

    William

    #925853

    Hi William,

    Can you tell us what version of Enfold you’re referring that it’s working?

    Best regards,
    Nikko

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