Tagged: Burger Menu
-
AuthorPosts
-
November 5, 2016 at 6:52 pm #708722
Hi,
Is it possible to set the burger menu on mobile when using Logo center menu below header setting? It means I am looking for a way to substitute old enfold mobile menu with the burger menu on mobile.
Thanks
November 6, 2016 at 8:01 am #708793Hi L,
Could you post a link to the site in question so that we can take a closer look please?
Best regards,
RikardNovember 6, 2016 at 9:12 am #708807Hi Rikard,
I am hosting it on my localhost and the site cannot be accessed right now. Basically this is a question about this layout http://kriesi.at/themes/enfold-hotel/ where header is with centrred logo and menu below.
Regards
November 8, 2016 at 7:24 am #709624Hi,
I’m not sure if I understood this correctly I am looking for a way to substitute old enfold mobile menu with the burger menu on mobile., I think you want to replace the icon with another icon or an image, if it’s an image try to add this code in Quick CSS (located in Enfold > General Styling):
@media only screen and (max-width: 989px) { #top #advanced_menu_toggle { background: url('NEW_BURGER_IMAGE') center center no-repeat !important; } #advanced_menu_toggle:before { display: none; } }
Just replace NEW_BURGER_IMAGE with the url of the image/icon you want to change, hope this helps :)
Best regards,
NikkoNovember 8, 2016 at 9:53 am #709669What I want to do, is to use the new burger menu instead of the Enfold mobile menu. Kriesi released a new menu type with the latest update – burger menu, which is used in Enfold Creative Studio template. The only problem is that I want to set the burger menu only on mobile and leave the logo center, menu below desktop menu. I cannot set it with the header Logo center, menu below.
What I want to do is: Use the http://kriesi.at/themes/enfold-hotel/ header menu on desktop and tablets, but this burger menu on mobile http://kriesi.at/themes/enfold-creative-studio/
Right now it is impossible to set on Enfold’s settings. Is there a workaround?
Edit: I mean Menu style: the ‘burger icon’ menu
Thanks
- This reply was modified 8 years ago by L.
November 10, 2016 at 6:05 am #710539Hi,
Try adding this code in functions.php:
function add_custom_hamburger(){ ?> <script type="text/javascript"> (function($){ function newburger() { $('#advanced_menu_toggle').append('<span class="av-hamburger av-hamburger--spin av-js-hamburger"><span class="av-hamburger-box"><span class="av-hamburger-inner"></span>Menu</span></span>'); } newburger(); })(jQuery); </script> <?php } add_action('wp_footer', 'add_custom_hamburger');
Then add this code to Quick CSS (located in Enfold > General Styling):
#advanced_menu_toggle { border: 0 !important; } #advanced_menu_toggle:before { display: none !important; }
Let us know if it works :)
Best regards,
NikkoNovember 12, 2016 at 1:55 am #711366Hey Nikko,
The function adds the code in the toggle on mobile screen width but the new menu is not clickable. The old menu is still appearing when tapping on the new icon. It is impossible to activate and open the new burger-menu. When clicking on the button Enfold mobile menu opens instead of new burger menu.
Screenshot when not hovered:
Screenshot when hovered:
Unfortunately I cannot demonstrate the behaviour to you, because it is not hosted on a public server. I have tried your suggested code on a basic http://kriesi.at/themes/enfold-lifestyle-blog/ with header menu below logo.
Can you please try this on your test environment to better understand?
Regards
November 15, 2016 at 8:02 am #712355Hey!
Yes, I imported lifestyle blog to have same environment as you do. Please add this to Quick CSS to fix the issue on hover:
#advanced_menu_toggle:hover { background: transparent !important; } @media only screen and (max-width:767px) { span.av-hamburger-box { color: transparent !important; position: relative; display: flex; align-items: center; } }
As for the menu itself how it shows/behaves on mobile, I’m afraid it will still be the same and not the same as what the new burger menu offers. Please feel free to request – or vote if already requested – such feature on Enfold feature request form since that customization would require much time.
Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.