Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #963976

    I see there are quite a few posts about the menu overlapping the logo, but I’m hoping you can help me figure out a good strategy for my particular problem.
    See the private notes for the direct links and login information

    Essentially what’s happening is I have the burger menu turning “on” at 960 pixels using the following code:

    @media only screen and (max-width: 960px) {
      nav.main_menu {
        display: block !important;
      }
      .menu-item {
        display: none;
      }
      .av-burger-menu-main.menu-item-avia-special {
        display: block;
      }
    }
    

    Works fine until you get the window muuuuuuch much small then the burger menu is overlapping, and the social icons are still there.

    I found some additional code to remove the social icons from the header on mobile layout, but I would like to keep them available somehow.

    Is there way to stack the three elements so it’s Logo centered at top, then below that the burger menu on the right, social media icons on the left? Or is that too crazy?

    The other option could be to hide the social icons in the flyout menu. I just want to make sure my burger menu still doesn’t overlap the logo, as it still does when I hide the social icons (see screenshot link below)

    Any other recommendations would be wonderful!

    Thanks in advance.

    #965107

    Hey kellyCraftMedia,

    Please try the following in Quick CSS under Enfold->General Styling:

    @media only screen and (max-width: 767px) {
    .responsive .logo img {
        max-width: 80%;
    }
    }

    Best regards,
    Rikard

    #968122

    That’s perfect, thank you!

    #968123

    Oh sorry I hit that too soon!

    It works wonderfully but we’d still like to have the social media icons appear somewhere… is there an easy way to have them moved to the flyout menu when in mobile?

    Thanks!

    #968147

    Hi,

    Glad it worked for you. To add the social icons in mobile menu please check this post https://kriesi.at/support/topic/social-media-icons-in-mobile-menu/#post-749838

    Best regards,
    Vinay

    #968161

    Hmm that didn’t seem to work – it removed all my social icons except for the Facebook on the full screen, and when you viewed it on mobile all the logos appeared but they were stacked to the right of the burger menu, not even on the flyout at all.

    Screenshots included in the private content.

    Thank you!

    #970916

    Hi,

    Thanks for the update. Please try this filter in the functions.php file.

    add_filter( 'wp_nav_menu_items', 'avf_add_search', 9999, 2 );
    function avf_add_search( $items, $args ) {
    	$social = avia_get_option('social_icons');
    	$icons = '';
    	if ($args->theme_location == 'avia')
    	{
    		foreach($social as $icon) {
    			$icons .= '<li class="menu-item menu-item-social social_bookmarks_'.$icon['social_icon'].' av-social-link-'.$icon['social_icon'].' only-mobile menu-item-'.$icon['social_icon'].'"><a target="_blank" href="'.$icon['social_icon_link'].'" aria-hidden="true" '.av_icon_string($icon['social_icon']).'><span class="avia_hidden_link_text">'.$icon['social_icon'].'</span></a></li>';
    		}
    		
    		$items = $icons . $items;
    	}
    	return $items;
    }
    
    

    Add this css code.

    @media only screen and (min-width: 989px) {
      /* Add your Desktop Styles here */
      .only-mobile {
        display: none !important;
      }
    }

    Best regards,
    Ismael

    #971313

    Hey, Guys. Sorry for just getting into your post. I found this useful for me.

    Ismael, thank you for the codes, they worked for me. Now the social icons appear on top of mobile menu.

    I have 3 icons and they are displayed in different rows (one below the other).

    1 – How can I put them all in the same row…. just one beside the other?
    2 – Also, they are collored like the main color of my site. How can I apply my own color to each one?
    3 – How can I put them below the menu itens… just at the end of the mobile menu?

    Thank you very much

    • This reply was modified 6 years, 6 months ago by otavioef.
    #971365

    Lovely – works great! Except they are stacked. Would love to get them side by side.

    Thanks!

    #971996

    Hi,

    Glad it worked. Please add these css codes to get them beside each other.

    #top #wrap_all #header #av-burger-menu-ul .only-mobile {
      display: inline-block;
      border-bottom: 0;
    }
    
    #top #wrap_all #header #av-burger-menu-ul .only-mobile a {
      padding: 20px;
      border: 0;
    }

    2 – Also, they are collored like the main color of my site. How can I apply my own color to each one?

    Each icon has its own unique css class attribute. Example.

    #top #wrap_all #header #av-burger-menu-ul .social_bookmarks_twitter a {
     color: red;
    }
    
    #top #wrap_all #header #av-burger-menu-ul .social_bookmarks_dribble a {
     color: green;
    }

    Best regards,
    Ismael

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