Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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.

    #720779

    Hey m,

    Can you post a link to your site? so we can check further.

    Best regards,
    Nikko

    #720782

    yes here you go.

    #720794
    #720806

    No this does not help. I’m aware of these solution. My menu is not overlapping the logo.

    #720808

    And the mentioned settings are already in place.

    #721493

    Hey!

    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!
    Nikko

    #721579

    Thank 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?

    #721584

    Hi!

    I checked the code and it is in your child themes functions.php file.

    Regards,
    Yigit

    #721585

    Thank you very much. Enfold is an awesome theme that keeps getting better, and support is great.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘menu overlapping page content on tablet’ is closed to new replies.