Tagged: mobile
-
AuthorPosts
-
March 11, 2018 at 8:02 pm #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/
March 11, 2018 at 8:04 pm #925245It also would collapse and minimize the top to only showing the smaller logo and menu button.
March 12, 2018 at 9:30 am #925384Hi,
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,
NikkoMarch 12, 2018 at 9:56 pm #925733I 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
March 13, 2018 at 4:23 am #925853Hi William,
Can you tell us what version of Enfold you’re referring that it’s working?
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.