-
AuthorPosts
-
January 11, 2020 at 12:03 pm #1172365
Hi, after wordpress was updated to 5.4.2, mobile icons are not showing up on mobile. I have installed this code as suggested in the link below.
https://kriesi.at/support/topic/missing-icons-after-updating-to-wordpress-5-3-1-and-maintenance-releases/Is there anything else I have missed out?
January 11, 2020 at 1:59 pm #1172380Hey geraldinetay27,
Do you mean that the social icons do not show on mobile? This is the default action of Enfold, to show the social icons in your header on mobile Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 479px) { .responsive #top #wrap_all #header .social_bookmarks, .responsive #top #wrap_all #main .av-logo-container .social_bookmarks { display: block !important; } }
Best regards,
MikeJanuary 11, 2020 at 5:33 pm #1172416Hi Mike, I would like the social icons to show on the burger menu in the mobile phone.
January 11, 2020 at 7:57 pm #1172441Hi,
Oh, I see. Try adding this code to the end of your functions.php file in Appearance > Editor:function ava_custom_script_mod(){ ?> <script> (function($){ var int = ''; function a() { var isMobile = $('.av-burger-menu-main').css('display'), htmlString = $('#header_main .social_bookmarks:first').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('<div 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', 'ava_custom_script_mod');
then add this code in the General Styling > Quick CSS field:
@media only screen and (max-width: 767px) { .burger-social { height: 30px; text-align: center; } .burger-social { width: 30px; height: 30px; line-height: 30px; text-align: center; display: inline-block !important; } .burger-social a { border-bottom: none; padding: 0; } }
Then clear your browser cache and any cache plugin, and check.
Best regards,
MikeJanuary 13, 2020 at 5:17 am #1172633Hi Mike,
Thank you! That works! Was wondering, could I have the social icons to show up next to the logo instead?
https://www.dropbox.com/s/du2tv313yizexma/Icons%20-%20Logo.jpeg?dl=0January 13, 2020 at 1:06 pm #1172743Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 767px) { .responsive #top #wrap_all .main_menu { right: 50% !important; } }
please adjust the “50%” in the code to suit your needs.
Then clear your browser cache and check.Best regards,
MikeJanuary 14, 2020 at 5:23 am #1173065Hi Mike,
After adding the css codes, the menu alignment became off.
https://www.dropbox.com/s/s7v0wpmegrsofeu/Photo%2014-1-20%2C%2011%2018%2048%20AM.png?dl=0I would like the social icons to show up before the menu icon in mobile as indicated in the blue box.
https://www.dropbox.com/s/s7v0wpmegrsofeu/Photo%2014-1-20%2C%2011%2018%2048%20AM.png?dl=0January 14, 2020 at 12:48 pm #1173261Hi,
Sorry I misread your request, I thought you wanted the menu moved over.
So please remove that css and use this instead:@media only screen and (max-width: 479px) { .responsive #top #wrap_all #header .social_bookmarks { display: block !important; } .main_menu { display: flex !important; flex-direction: row-reverse !important; } }
I didn’t see a “blue box” in your screenshot but this css does put the social icons before the burger menu.
After applying the css, Please clear your browser cache and check.Best regards,
MikeJanuary 14, 2020 at 4:07 pm #1173410Hi Mike,
Great it works now! Thank you so much! :)
-
AuthorPosts
- The topic ‘Social Icons are not appearing in Mobile in WordPress 5.3.2’ is closed to new replies.