Tagged: theme update
-
AuthorPosts
-
August 17, 2017 at 1:34 am #840181
Hello,
I updated our site from Enfold 4.0.7 to 4.1.2 and now notice that the Main Menu is not displaying as a mobile/burger menu on mobile screens. I’ve checked the Main Menu settings in Enfold Child Theme options and nothing seems amiss. Can you have a look and let me know what could be causing this?
Thanks
August 17, 2017 at 5:51 am #840220Hey kvpacs,
Clear your cache (mainly if you use some cache plugin) and check if it works.
Best regards,
John TorvikAugust 17, 2017 at 10:27 pm #840635Hi John, I’ve cleared all caches and confirmed with my web host that I got them all. Still not seeing the burger menu on mobile. Have cleared browser cache and tried multiple browsers. Any other ideas?
Thanks
August 17, 2017 at 11:16 pm #840651Hi,
I can see you are having a child theme – and most probably your child theme has a header.php file.
The issue is there, the mobile is not working because header file needs to get the new updates.Best regards,
BasilisAugust 18, 2017 at 3:57 am #840716Hi Basilis,
That makes sense. I copied header.php from enfold version 4.1.2 into our enfold child theme folder and pasted our additional code into it. Uploaded to the site and purged all caches. Did I do this right? Still cannot see the mobile main menu.
Theresa
August 19, 2017 at 8:40 pm #841407Hi Theresa,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (max-width: 767px) { nav.main_menu { display: block !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaAugust 20, 2017 at 8:24 pm #841749Thanks Victoria, you are absolutely right – the CSS was overriding the mobile menu from displaying. Instead of adding your CSS, I removed this from my child CSS file:
/* SWITCH TO MOBILE MENU AT CUSTOM WIDTH (to fix menu overlap onto logo for 990 – 1024px screens) */
@media only screen and (max-width: 1024px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important; }
}The mobile/burger menu now displays. Can you update this rule to trigger the mobile menu on screens less than 1024px, so that I can add it back into my child CSS?
I’m also not sure why the mobile sub-menus are not opening. Any ideas about this?
Thanks again,
TheresaAugust 21, 2017 at 2:29 pm #842015Hi Theresa,
Well, we have an issue with that. Below is the thread about it:
And here is yet another slight adjustment to the menu
@media only screen and (min-width: 1024px) { .av-main-nav > li > a { padding: 0 8px; } } @media only screen and (min-width: 1100px) { .av-main-nav > li > a { padding: 0 13px; } }
If you need further assistance please let us know.
Best regards,
VictoriaAugust 30, 2017 at 8:32 pm #845953Hi Victoria,
The sub menu fix, replacing # with https:// in the mega menu worked. Thanks for the thread.
I haven’t had any luck with the new CSS above. I added it to my child CSS file and cleared all caches but cannot see a difference. As I reduce the screen size, the main menu overlaps our logo before switching to a burger menu. I’d like to trigger the mobile/burger menu at 1024px… and like help updating the following CSS we previously used, which no longer works:
@media only screen and (max-width: 1024px) {
nav.main_menu {display:none !important;}
#advanced_menu_toggle, #advanced_menu_hide {display:block !important; }
}Thanks again!
September 4, 2017 at 8:31 pm #847873Hi,
Please take a look at the topic here
which will explain how to do things.
Thank youBest regards,
BasilisSeptember 6, 2017 at 12:25 am #848384Thanks Basilis. I checked the thread and have inserted the following in my child CSS:
@media only screen and (max-width: 1100px) {
.html_mobile_menu_tablet .main_menu , .html_mobile_menu_tablet #header_main_alternate{display:none;}
.html_mobile_menu_tablet .container #advanced_menu_toggle, .html_mobile_menu_tablet #advanced_menu_hide{display:block;}
.html_mobile_menu_tablet #mobile-advanced{display:block;}
}The main menu is hidden at 1100px, which is perfect, but the mobile menu is not displaying until I reduce the screen size to 990px. How do I get the mobile/burger menu to display at 1100px or less?
Thanks again,
TheresaSeptember 6, 2017 at 5:30 pm #848774Hi Theresa,
The code below will show the menu as text from 990px without any overlap, if you want to make it a burger manu, let us know till what screen size.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css@media only screen and (min-width: 990px) and (max-width: 1023px){ .av-main-nav > li > a { padding: 0 5px; } } @media only screen and (min-width: 1024px) and (max-width: 1099px) { .av-main-nav > li > a { padding: 0 8px; } } @media only screen and (min-width: 1100px) { .av-main-nav > li > a { padding: 0 13px; } } @media only screen and (max-width: 1100px) { .html_mobile_menu_tablet .main_menu { display: block !important; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 10, 2017 at 7:44 pm #850181This reply has been marked as private.September 11, 2017 at 5:15 pm #850587Hi Nicole Scalessa,
We are very sorry to hear that, the new version introduced the new modern menu and turned out to be a bit more challenging. We are here to help you. Do not copy the code above, it looks like you issue is a bit different.
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?Best regards,
VictoriaSeptember 11, 2017 at 8:57 pm #850665Hi Victoria,
I inserted the new CSS into my child theme and the main menu is displaying as text again from 990-1100px and overlapping the logo. I instead would like the burger menu to trigger and display at screen widths under 1100px.
Thanks again,
TheresaSeptember 12, 2017 at 10:25 am #850929Hi Theresa,
Yes, that’s exactly what the code does. Show the menu as text, but reduce paddings, so that the menu does not overlap the logo.
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 991px) and (max-width: 1100px) { .html_mobile_menu_tablet .main_menu { display: block; } .menu-item { display: none; } .av-burger-menu-main.menu-item-avia-special { display: block; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 12, 2017 at 4:55 pm #851096Thank you for your help. That worked for mobile phones but tablet view is still wonky. The social icons are appearing in both the header and the top bar. The second set of social icons and the mobile menu are on top of the logo so it is difficult to see. How can I have tablet view act like mobile view?
Thanks,
Nicole
September 12, 2017 at 6:30 pm #851157Hi Nicole,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
@media only screen and (min-width: 768px) and (max-width: 1023px) { .main_menu ul.social_bookmarks { display: none; } div .logo { width: 80%; padding-top: 3%; } .header-scrolled.header-scrolled-full div .logo, .header-scrolled div .logo { padding-top: 0%; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 12, 2017 at 6:55 pm #851174I replaced what I had with what you most recently provided and there is no change in tablet view. Menu, Search icon, and social media is all on top of the logo. Nicole
September 12, 2017 at 9:23 pm #851249Oops, I was not understanding that part – It all makes sense now. I have all the CSS in place and the menu is switching to mobile before anything overlaps. Thanks for your help Victoria!
Theresa
September 12, 2017 at 9:47 pm #851254Why is this working for Theresa and not for me? My tablet view is still a mess.
NicoleSeptember 13, 2017 at 2:42 am #851313Victoria is the expert… but in case it helps, here’s what I ended up pasting into my child CSS file. The main menu no longer overlaps our logo at certain tablet widths – the mobile burger menu displays instead:
@media only screen and (max-width: 1100px) {
.html_mobile_menu_tablet .main_menu , .html_mobile_menu_tablet #header_main_alternate{display:none;}
.html_mobile_menu_tablet .container #advanced_menu_toggle, .html_mobile_menu_tablet #advanced_menu_hide{display:block;}
.html_mobile_menu_tablet #mobile-advanced{display:block;}
}
@media only screen and (min-width: 990px) and (max-width: 1023px){
.av-main-nav > li > a {
padding: 0 5px;
}
}
@media only screen and (min-width: 1024px) and (max-width: 1099px) {
.av-main-nav > li > a {
padding: 0 8px;
}
}
@media only screen and (min-width: 1100px) {
.av-main-nav > li > a {
padding: 0 13px;
}
}
@media only screen and (max-width: 1100px) {
.html_mobile_menu_tablet .main_menu {
display: block !important;
}
}
@media only screen and (min-width: 991px) and (max-width: 1100px) {
.html_mobile_menu_tablet .main_menu {
display: block;
}
.menu-item {
display: none;
}
.av-burger-menu-main.menu-item-avia-special {
display: block;
}
}Theresa
September 14, 2017 at 6:51 am #851851Hi,
@nscalessa: I checked the whole thread but I can’t find the login details. Please post it in the private field so that we can check the css modifications.
@kvpacs: Thanks for sharing.Best regards,
IsmaelSeptember 14, 2017 at 6:21 pm #852260Sorry, it is our policy not to share our login credentials with companies not under explicit contract that includes a non-disclosure agreement.
Any help you can provide without access would be greatly appreciated. If there is a particular area of code you would like me to copy for your here I can.
Nicole Scalessa
September 15, 2017 at 10:44 am #852477Hi,
@nscalessa: The site looks ok on tablet view except for the duplicate social icons. Please add this code in the Quick CSS field.
@media only screen and (max-width: 989px) and (min-width: 768px) .responsive.html_mobile_menu_tablet #top .av-logo-container .main_menu .social_bookmarks { display: none !important; } }
Best regards,
IsmaelSeptember 15, 2017 at 7:22 pm #852648That worked Thank you! But I had to put in the edit CSS part of WP, t didn’t work in Quick CSS (nothing seems to).
NicoleSeptember 16, 2017 at 7:05 am #852825 -
AuthorPosts
- The topic ‘Mobile main menu missing after Enfold update’ is closed to new replies.