-
AuthorPosts
-
April 12, 2023 at 1:48 pm #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, 7 months ago by gfriend70.
April 13, 2023 at 8:29 am #1404307Hey 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,
IsmaelApril 13, 2023 at 1:39 pm #1404355Thank 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.
April 15, 2023 at 11:34 pm #1404562Hi,
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 submenuSince 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 -
AuthorPosts
- You must be logged in to reply to this topic.