-
AuthorPosts
-
December 5, 2016 at 11:41 pm #720736
The menu is below the logo. The menu has several links, and more might be added in the future. When the browser window is made more narrow, instead of the menu items gaining additional height for the now double row of links, it overlaps the below webpage content. What is the fix? The padding and font size cannot be reduced any further.
December 6, 2016 at 2:28 am #720779Hey m,
Can you post a link to your site? so we can check further.
Best regards,
NikkoDecember 6, 2016 at 2:41 am #720782yes here you go.
December 6, 2016 at 3:37 am #720794Hey!
Please refer to this post – http://kriesi.at/documentation/enfold/menu-overlaps-logo-on-tablets/ and if that does not help, please see – http://kriesi.at/documentation/enfold/switching-to-mobile-menu-on-higher-resolutions/
Regards,
YigitDecember 6, 2016 at 4:59 am #720806No this does not help. I’m aware of these solution. My menu is not overlapping the logo.
December 6, 2016 at 4:59 am #720808And the mentioned settings are already in place.
December 7, 2016 at 2:31 pm #721493Hey!
I have added this code in your Quick CSS (located in Enfold > General Styling):
.html_header_top.html_bottom_nav_header .main_menu>div, .html_header_top.html_bottom_nav_header .main_menu ul:first-child { height: auto !important; } .html_header_top.html_bottom_nav_header .main_menu ul#avia-menu:after { content: ""; display: table; clear: both; }
This is to make the height of the menu flexible. And have added this code in functions.php:
function adjust_header(){ ?> <script type="text/javascript"> (function($){ function adjust_header() { var $header_height = $("#header").height(); jQuery("#main").css({"padding-top": $header_height + "px"}); } adjust_header(); })(jQuery); </script> <?php } add_action('wp_footer', 'adjust_header');
To adjust the padding based on the height of the header, to test this you need to resize the browser then refresh the page since the code only runs when the page is being loaded. Let us know if this is good on your end.
Cheers!
NikkoDecember 7, 2016 at 4:47 pm #721579Thank you! This should be fine. Did you add the code to the Child functions.php, and not the parent one that would be overwritten with theme updates?
December 7, 2016 at 4:55 pm #721584Hi!
I checked the code and it is in your child themes functions.php file.
Regards,
YigitDecember 7, 2016 at 4:56 pm #721585Thank you very much. Enfold is an awesome theme that keeps getting better, and support is great.
-
AuthorPosts
- The topic ‘menu overlapping page content on tablet’ is closed to new replies.