Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1404217

    Hello, could you please help me with an issue where my website looks fine on desktop, laptop and tablet, but on a smartphone there is a huge white gap between the logo and the content?

    • This topic was modified 1 year, 5 months ago by gfriend70.
    #1404307

    Hey gfriend70,

    Thank you for the inquiry.

    The issue occurs because of this css code.

    .inner-container {
        height: 440px!Important;
    }

    Did you add it somewhere? Please try to remove the modification or add the following css code in the Quick CSS field or in the child theme’s style.css file to override it.

    #top #header .inner-container {
        height: 88px!Important;
    }
    

    Best regards,
    Ismael

    #1404355

    Thank you, That has fixed the issue. There is one more issue that has been pointed out where ‘Facilities’ appears twice on the mobile menu but only once when viewed on a desktop. I cannot see a way of fixing this. Facilities only need to appear once on both menus. if you click ‘Facilities’ on a smartphone you will see what I mean. Thank you.

    #1404562

    Hi,
    Thank you for your patience, the reason the menu item “Facilities” shows twice on your mobile menu is due to the setting at Enfold Theme Options ▸ Main Menu ▸ Burger/Mobile Menu ▸ Clone title menu items to submenu

    Since you selected to display submenu items on click or on hover, the parent menu item does no longer navigate to the URL it contains, but toggles the visibility of its submenu items. If you want users to be able to open the parent menu URL the theme can create a clone of that item in the submenu

    So you can disable this and mobile users won’t be able to go to your “Facilities” page.
    Another option would be to use this function to change the first “Facilities” to something else like “Amenities” and the second “Facilities” will still link to the “Facilities” page.
    Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function rename_parent_menu_item_in_mobile_menu() { ?>
      <script>
    window.addEventListener('DOMContentLoaded', function() {
      (function($){ 
        $('.avia_mobile').on('click', '.av-burger-menu-main', function() {
        $('.menu-item-254 .avia-menu-text:first').text(function(index, text) {
            return text.replace('Facilities', 'Amenities');
        });
        });
      }(jQuery));
    });
    </script>
      <?php
    }
    add_action('wp_footer', 'rename_parent_menu_item_in_mobile_menu');

    Then clear your browser cache and check.

    Best regards,
    Mike

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