Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1151363

    please i want to add social icons/ phone and email to my top bar, in desktop then add thesame thing inside bar ONLY IN MOBILE(burger menu). Top header in mobile should be free.
    you can see example from this https://garagerenewoftallahassee.com

    #1151422

    Hey vonipeter,
    Thanks for the links, please try this solution
    I note that you request that for mobile that the topbar with your phone number and email address is empty, but this may be a problem because the mobile menu doesn’t exist until the burger menu is clicked and then the script grabs the elements you want and moves them to the mobile menu, so you may need to leave the phone number and email address in the topbar for mobile.

    Best regards,
    Mike

    #1151905

    didnt work for me

    #1152960

    Hi,
    Sorry for the late reply, Try removing the other code and adding this code to the end of your functions.php file in Appearance > Editor:

    function custom_script(){
      ?>
      <script>
    jQuery(window).load(function(){
      jQuery( '#header_meta' ).each(function() {
      jQuery( this ).find( '.social_bookmarks_facebook' ).appendTo( "#av-burger-menu-ul" );
      });
      });
      </script>
    <?php
    }
    add_action('wp_footer', 'custom_script');

    then add 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 #header .phone-info  {
        display: block !important;
    }
    }

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.