Tagged: overlay menu
-
AuthorPosts
-
April 30, 2024 at 9:03 pm #1441501
Hi, I have a fullpage overlay menu (great addition!) but on mobile there are 2 things;
1. the spacing is too big, so you can not read all the items and have to scroll trough the menu. How can I make the spacing smaller, and maybe also the text?
And is it possible to move the overlay menu a little higher or does this relate to the postion of the burger?2. the X for closing the stays in place, so it overlaps the text when scrolling (this might be fixed when I fix point 1)
Thanks a lot!
May 1, 2024 at 11:13 am #1441567Hey mirr,
Please try the following in Quick CSS under Enfold->General Styling:
#top li.av-burger-menu-main { position: fixed; } #top #av-burger-menu-ul { vertical-align: top; }
Best regards,
RikardMay 1, 2024 at 8:55 pm #1441633Hey Rikard, thanks for the reply. Didn’t quite do the trick.
Btw this is only for mobile version, the desktop is fine as it is.Thanks, and sorry for being unclear.
May 2, 2024 at 6:10 am #1441759Hi,
Thank you for the inquiry.
1.) You can adjust the style of the burger menu items in the Enfold > Advanced Styling panel. Look for the element under the Main Menu (Icon) section. You can also use this css code:
.html_av-overlay-full #top #wrap_all #av-burger-menu-ul li { line-height: 1em; font-size: 2em; }
Please make sure to toggle the Enfold > File Compression settings and purge the cache.
2.) Add this script to the functions.php file to make the close icon fade out on scroll down and fade in again on scroll up.
function ava_custom_script_fade_scroll() { ?> <script> (function ($) { $(document).ready(function () { var lastScrollTop = 0; var element = $('.av-hamburger.av-hamburger--spin.av-js-hamburger.av-inserted-main-menu.is-active'); $(window).scroll(function () { var st = $(this).scrollTop(); if (st > lastScrollTop) { element.fadeOut(); } else { element.fadeIn(); } lastScrollTop = st; }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_fade_scroll');
Best regards,
IsmaelMay 2, 2024 at 10:13 am #1441861Thank you, is it possible to start the menu higher on mobile?
(when it is in overlay mode)May 3, 2024 at 3:50 am #1442022Hi,
Thank you for the update.
You can add this css code to adjust the position of the menu items and the close icon.
@media only screen and (max-width: 767px) { /* Add your Mobile Styles here */ #top #av-burger-menu-ul { padding: 100px 0 !important; } .responsive #top #wrap_all .main_menu { top: -120px; } }
Best regards,
IsmaelMay 3, 2024 at 10:14 am #1442107Thanks, this is almost it. I need the menu to be -120 only when it’s opened. The burger icon is good in place as it is, then when opened I would like the menu to be more to the top.
May 3, 2024 at 3:09 pm #1442194Hi,
when I check your mobile menu the top line is almost on the burger menu “X” please see the screenshot in the Private Content area to ensure that this is what you see also.
If not then perhaps your mobile device cache is showing you an old version, if this is what you see and you want it even higher try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:#top #av-burger-menu-ul { vertical-align: top; padding: 190px 0 !important; }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.
Please note that testing with iPads & iPhones can be hard to clear the cache, often you need to also clear the history to fully purge the cache, following these steps for Safari and note Step 4 where you will Clear the History.Best regards,
MikeMay 3, 2024 at 3:14 pm #1442195Hi, I see the same but I made a screenshot of what I would like to achieve.
Only for the overlay, the current burger position is good as it is.May 3, 2024 at 4:39 pm #1442203Hi,
Thanks for the screenshot, so you want to move the burger menu “X” over the logo, are you sure you want to do this, each time you open and close the burger menu on mobile there is going to be a big “jump”. Right now the burger menu icon stays in the same place when open or closed.
Nonetheless, try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:@media only screen and (max-width: 767px) { #top #av-burger-menu-ul { vertical-align: top !important; padding: 130px 0 !important; } .responsive.av-burger-overlay-active #top #wrap_all .main_menu { top: -90px; } }
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
After applying the css, please clear your browser cache and check.Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.