Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    John

    #1014880

    Hey 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,
    Nikko

    #1015035

    Thanks Nikko

    Its working but I have the burger menu and the social icons now stacked on top of each other.

    Thanks
    John

    #1015320

    Hi 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,
    Victoria

    #1015538

    Thanks 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
    John

    #1015807

    Hi John,

    Well, the code given by Nikko needs to be adjusted. Can you please update the login link.

    Best regards,
    Victoria

    #1015958

    Hi Victoria,

    That is odd?

    Please try the one below.

    Thanks
    John

    #1016041

    Hi 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,
    Nikko

    #1016186

    Many thanks Nikko.

    Seems to have done the job.

    Please close thread.

    Cheers
    John

    #1016190

    Hi,

    Glad Nikko was able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘social icons not showing in mobile view’ is closed to new replies.