-
AuthorPosts
-
September 26, 2018 at 12:55 pm #1014699
Hi,
Ive been searching for a way on the forum to get the social icons to display as in the image in the link provided in PC below.
Presently they do not show in mobile view. The image is from a reduced view of my browser window but is representative of how I would like it to be.
Is it possible to have the icons show like this or is it better to have them placed on a separate row either above or below the top header that has the phone number? If it needs to be on its own row I would need to be able to control its size to suit.
Also, is there a way to add a messenger icon (and a link) to this group? The messenger icon is not an available choice in the social icons.
Many thanks
JohnSeptember 26, 2018 at 5:23 pm #1014880Hey John,
Can you try adding this php code at the bottom of functions.php:
function move_social_icons(){ ?> <script> (function($){ function move_icons() { var isMobile = $('#header_main .av-burger-menu-main').css('display'), htmlString = $('#header .social_bookmarks').html(), headerMainContainer = $('#header_main .inner-container'); //console.log(htmlString); if(isMobile == 'none') return; $('<div class="noLightbox social_bookmarks social_bookmarks_mobile">' + htmlString + '</div>').appendTo(headerMainContainer); } $(window).on('load resize',function() { move_icons(); }); })(jQuery); </script> <?php } add_action('wp_footer', 'move_social_icons');
Then inside the WP Dashboard, go to Enfold > General Styling > Quick CSS > add this css code:
@media only screen and (max-width:767px) { .responsive #top #wrap_all #header .social_bookmarks_mobile { display: block !important; left: auto !important; right: 0 !important; } }
Hope it helps.
Best regards,
NikkoSeptember 27, 2018 at 12:28 am #1015035Thanks Nikko
Its working but I have the burger menu and the social icons now stacked on top of each other.
Thanks
JohnSeptember 27, 2018 at 3:12 pm #1015320Hi John,
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) { .responsive #top #wrap_all .main_menu { right: 70px; } }
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 27, 2018 at 11:34 pm #1015538Thanks Victoria.
That has brought in the icons to the correct positioning in portrait but when viewed in landscape I am seeing double icons.
I’ve added an admin account just in case you need to take a look?
Cheers
JohnSeptember 28, 2018 at 5:14 pm #1015807Hi John,
Well, the code given by Nikko needs to be adjusted. Can you please update the login link.
Best regards,
VictoriaSeptember 29, 2018 at 2:23 am #1015958Hi Victoria,
That is odd?
Please try the one below.
Thanks
JohnSeptember 29, 2018 at 1:26 pm #1016041Hi John,
Thanks for giving us the admin access.
I have removed the codes I suggested and added this code in Quick CSS:@media only screen and (max-width:479px) { .responsive #top #wrap_all #header_main .social_bookmarks { display: block !important; } .responsive #top .av-logo-container .avia-menu.av_menu_icon_beside { padding-right: 25px; margin-right: 25px; border-right-width: 1px; border-right-style: solid; } .responsive #top #wrap_all .main_menu { right: 0 !important; } }
Clearing browser cache might be needed.
Let us know if this helps :)Best regards,
NikkoSeptember 29, 2018 at 11:46 pm #1016186Many thanks Nikko.
Seems to have done the job.
Please close thread.
Cheers
JohnSeptember 30, 2018 at 12:55 am #1016190 -
AuthorPosts
- The topic ‘social icons not showing in mobile view’ is closed to new replies.