-
AuthorPosts
-
April 8, 2021 at 9:54 pm #1293391
Hi
I’m trying to add the Social Media Icon’s in the Mobile Menu bellow the Menu Links. Like in this Post
I already tried to use the Scripts from the forum, but non of them are working for me… I also tried the script mentioned in the Post above…
https://kriesi.at/support/topic/social-media-icons-in-mobile-menu/#post-749838
https://kriesi.at/support/topic/social-icon-in-mobile-menu/Maybe someone can give me a start point :)?
Thank you very much!
Kind regards
Kevin- This topic was modified 3 years, 7 months ago by kevinhaag.
April 11, 2021 at 1:46 pm #1293765Hey kevinhaag,
Thank you for your patience please give this script a try, in the functions.php:function custom_script() { ?> <script> (function($){ var int = ''; function a() { var isMobile = $('.av-burger-menu-main').css('display'), htmlString = $('#header_main .social_bookmarks').find('li a'), mobileMenu = $('.av-burger-overlay'), socialString = []; if(isMobile == 'none') return; if($('.burger-social').length) clearInterval(int); htmlString.each(function() { var socialClass = $(this).parent('li').attr('class'), socialItems = $(this).wrap('<li class="'+ socialClass + ' av-active-burger-items burger-social"></div>').parent().unwrap(); socialString.push(socialItems); }); $(socialString).each(function() { $(this).appendTo('#av-burger-menu-ul'); }); } $('#header').on('mousedown', '.av-main-nav-wrap', function() { int = setInterval(function() { a(); }, 500); }); })(jQuery); </script> <?php } add_action('wp_footer', 'custom_script');
the css:
#av-burger-menu-ul li.burger-social { float: left; } #av-burger-menu-ul li.burger-social a { padding: 10px !important; border-bottom: none !important; } #av-burger-menu-ul li.social_icon_1 { padding-left: 40px }
Best regards,
MikeApril 12, 2021 at 1:13 pm #1293933Hi Mike
Thank you so much! It just worked out of the box :)
I’m really appreciate your support!Kind regards
Kevin- This reply was modified 3 years, 7 months ago by kevinhaag.
April 12, 2021 at 1:15 pm #1293937Hi,
Glad Mike could help! :)
For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/
If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)
Enjoy the rest of your day!
Best regards,
Yigit -
AuthorPosts
- The topic ‘Social Media Icons in Mobile Menu’ is closed to new replies.