-
AuthorPosts
-
April 13, 2021 at 9:49 am #1294050
Hi there,
can you help how to style the burger menu like attached image?
Can’t seem to work it out. I do have the menu in place, but can’t find the solution for less vertical spacing, and putting the address on the bottom.regs,
April 15, 2021 at 6:30 am #1294484Hey jorisbl,
Thank you for the inquiry.
Have you started with the modifications? We have to check the actual site first and see the current layout in order to provide the necessary code or changes for the mobile menu.
To add or move the social icons inside the mobile menu, please implement the script from the following thread.
// https://kriesi.at/support/topic/social-icon-in-mobile-menu/#post-1226347
Best regards,
IsmaelApril 15, 2021 at 7:34 am #1294504Hi Ismael.
no didn’t start the modifications. Still need some help with vertical spacing, seperator, adress in the menu bar and icons on the bottom.
regs,
April 18, 2021 at 4:42 am #1294949Hi,
Thanks for the update. Let’s try to deal with one problem at a time, did you try adding the code Ismael linked to? If you are having problems with that, then please give us access to the site in question, so that we can have a closer look.
Best regards,
RikardApril 18, 2021 at 9:01 pm #1295016HI Rikard,
I have added the code ismael linked to. But that didn’t solve it..April 21, 2021 at 4:02 am #1295656Hi,
Thanks for the update. What kind of problems did you run into? Where can we see the results you are getting?
Best regards,
RikardApril 21, 2021 at 7:50 am #1295709Hi Rikard,
you can see it on the actual website, see link in private content.
As I’ve mentioned above, I would like to have the burger menu as is on the picture above.regs,
April 22, 2021 at 12:36 pm #1296029Hi,
Thank you for the info.
The script that we provided in the previous thread will move the social icons inside the mobile menu, but since the social icons are not yet enabled in your site, the script has nothing to move.
Please enable the social icons in the Enfold > Header > Extra Elements panel, then test it again. We can add a few css if you want the social icon to only display inside the mobile menu.
Best regards,
IsmaelApril 22, 2021 at 7:28 pm #1296138Hi Ismael,
have enabled the social icons, but they are now next to the menu? And could you give some css to style the vertical space between the menu items?
April 23, 2021 at 6:36 am #1296194Hi,
To hide the social icons beside the menu, please use this css code.
.avia-menu + .social_bookmarks { opacity: 0; }
We edited the script a bit. Please try this one instead.
// move social icons inside icon or mobile menu function ava_custom_script_mod_social() { ?> <script> (function($) { $(document).ready(function() { var burger_wrap = $('.av-burger-menu-main a'); var social = $('.social_bookmarks'); $(burger_wrap).on('avia_burger_list_created', function() { setTimeout(() => { social.appendTo('#av-burger-menu-ul').addClass("mobile_social_bookmarks"); }, 150); }); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script_mod_social', 10000);
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.