Viewing 22 posts - 1 through 22 (of 22 total)
  • Author
    Posts
  • #1419175

    Hello, i would the logo at center and centered on the header (check now that is not in the middle of the header bar).
    I would that the logo is above after click the burger. I mean, when the submenu is opened, the logo is visible and in the same position.
    I would try to give some transparency at the sub menu background.
    Thanks.

    #1419399

    Hey Stilecatalini,
    I carefully examined your site and came up with a way to center your logo for all device sizes and for it to show in the same place when the menu is open.
    This is the logo before the menu is open:
    Enfold_Support_3336.jpeg
    and this is with the menu open the logo shows in the same place:
    Enfold_Support_3338.jpeg
    Add this code to the end of your child theme functions.php file in Appearance ▸ Editor:

    function show_logo_in_burger_menu() { ?>
      <script>
    (function($){
    $('#avia-menu').one('click', function(){
    jQuery('.logo.avia-standard-logo').clone().wrapInner('<div class="burger-logo"/>').children(0).unwrap().prependTo('#av-burger-menu-ul');
    });
    })(jQuery);
    </script>
      <?php
    }
    add_action('wp_footer', 'show_logo_in_burger_menu', 99);

    and this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (min-width: 990px) { 
    	.logo.avia-standard-logo,
    	.logo.avia-standard-logo a {
    		display: flex;
    	    justify-content: center;
    	    width: 100%;
    	    align-items: center;
    	}
    	.av-burger-overlay-active .burger-logo {
    		top: 30px;
    	    position: absolute;
    	    justify-content: center;
    	    display: flex;
    	    width: 100%;
    	}
    }
    @media only screen and (max-width: 989px) {
    	.responsive #top .logo {
    		width: 100%;
    		display: flex;
    		justify-content: center;
            align-items: center;
    	}
    	.responsive #top #wrap_all .main_menu,
    	.responsive #top #wrap_all .av_mobile_menu_tablet .main_menu {
        	top: 11px;
        	height: 55px;
    	}
    	.av-burger-overlay-active .burger-logo img {
    		height: 30px;
        	max-height: 30px;
        	width: 155.17px;
    	}
    	.av-burger-overlay-active .burger-logo {
    		top: 25px;
    	    position: absolute;
    	    justify-content: center;
    	    display: flex;
    	    width: 100%;
    	}
    }
    @media only screen and (min-width: 768px) and (max-width: 989px) { 
    	.responsive.html_header_transparency.html_header_top #top #main {
        	margin-top: -70px;
    	}
    	.responsive #top .logo {
        	height: 80px !important;
    	}
    }

    Best regards,
    Mike

    #1419405

    Have already you putted the code?
    Again, is it works also on mobile?

    #1419408

    Hi,
    No you need to put the code in, and yes it works on mobile.

    Best regards,
    Mike

    #1419411

    Tried but i didn’t mean that.
    The logo should be at the center always. So, in overlay it should stay where it was.

    #1419413

    Hi,
    Yes it will.

    Best regards,
    Mike

    #1419568

    This is what i see…
    The other two pictures show what i mean:
    _header less thick;
    _logo centered (up and down – left and right);
    _burger at right (up and down centered);
    _email logo at left (up and down centered).

    About email logo, please put a css code with an image that i can modify…

    Hope understand my intentions.

    #1419766

    Hi,
    It looks like you didn’t add the code above to center the logo, I added it for you and now the logo is centered.
    This doesn’t include adding a mail icon, please start a new topic for that request.

    Best regards,
    Mike

    #1419768

    Ok. Well but I think there is some problem with the mobile. I cannot see more the images: for example the color section after just open the site. Check!

    #1419797

    Hi,
    Sorry, I don’t understand what you mean, we are talking about the logo being centered and showing when the burger menu is open, so just like my original screenshots above, on mobile the logo is centered:
    Enfold_Support_3397.jpeg
    and when the menu is open the logo shows centered:
    Enfold_Support_3395.jpeg
    Please note that you should test after clearing your cache and while logged out because the admin topbar that shows when you are logged in will displace the menu and logo.

    Best regards,
    Mike

    #1419850

    Ok. It’s ok about that. Please see the other topic about the text dimensions.
    Thanks.

    #1419852

    Check how I see that…

    #1419862

    Hello,

    That is because you have the following custom CSS code:

    
    @media only screen and (max-width: 989px) {
      .responsive #top #wrap_all #header {
        height: 50px !important;
        max-height: 50px !important;
      }
    }
    

    Try changing it to the following:

    
    @media only screen and (max-width: 989px) {
      .responsive #top #wrap_all #header {
        height: 90px !important;
        max-height: 90px !important;
      }
    }
    

    Best regards,
    Yigit

    #1419874

    Ok, understand. Can you move the burger up a little? I would the header at 50px but with the logo and the burger perfectly centerd on the header bar.
    Now i’m trying to add an email icon on the left but it’s so difficult for me…..

    #1419940

    Now the logo on mobile is enormous!
    Damn! Check pleaseeee!!

    #1419948

    I don’t know if you have changed something but now I see this..

    #1420004

    Hello,

    No, we didn’t change anything. After fixing your CSS errors, CSS is now correctly applied and you are seeing the results of your custom CSS code.

    You can remove the following code from the Additional CSS field to fix this:

    
     .responsive #top .av-logo-container, .responsive #top .logo a, .responsive #top .logo img, .responsive #top .logo svg {
        height: 60px !important;
        max-height: 60px !important;
        line-height: 60px !important;
      }
    

    Cheers!
    Yigit

    #1420043

    Hi, please see this example. This is exactly what I mean about the overlay with the logo inside and the buttons less big and the lines between the buttons with less space.
    I think is not difficult to do that..
    Or not?

    #1420057

    CSS removed but without success…..
    Damn.

    #1420070

    This is what!

    #1420071

    Is it possible to have less space between the logo and the buttons? I think is too much…

    #1420136

    Hi,
    To have very large menu items and align them at the top try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    #top #av-burger-menu-ul {
    	vertical-align: top;
    }
    @media only screen and (max-width: 767px) { 
    #av-burger-menu-ul .avia-menu-text {
    	font-size: 60px;
    }
    }
    @media only screen and (min-width: 767px) { 
    	#av-burger-menu-ul .avia-menu-text {
    	font-size: 80px;
    }
    }

    feel free to adjust to suit, this is the expected results:
    Enfold_Support_3415.jpeg
    Since the original question has been answered we will close this thread as it has now covered multiple topics, please note that we ask each thread to limit to one topic.
    If you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 22 posts - 1 through 22 (of 22 total)
  • The topic ‘logo at center and above the submenu’ is closed to new replies.