-
AuthorPosts
-
September 14, 2023 at 4:16 pm #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.September 17, 2023 at 7:47 pm #1419399Hey 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:
and this is with the menu open the logo shows in the same place:
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,
MikeSeptember 17, 2023 at 8:50 pm #1419405Have already you putted the code?
Again, is it works also on mobile?September 17, 2023 at 8:57 pm #1419408September 17, 2023 at 9:00 pm #1419411Tried but i didn’t mean that.
The logo should be at the center always. So, in overlay it should stay where it was.September 17, 2023 at 9:02 pm #1419413September 19, 2023 at 1:43 pm #1419568This 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.
September 20, 2023 at 6:43 pm #1419766Hi,
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,
MikeSeptember 20, 2023 at 7:32 pm #1419768Ok. 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!
September 21, 2023 at 1:51 am #1419797Hi,
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:
and when the menu is open the logo shows centered:
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,
MikeSeptember 21, 2023 at 10:02 am #1419850Ok. It’s ok about that. Please see the other topic about the text dimensions.
Thanks.September 21, 2023 at 10:06 am #1419852Check how I see that…
September 21, 2023 at 10:33 am #1419862Hello,
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,
YigitSeptember 21, 2023 at 11:43 am #1419874Ok, 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…..September 21, 2023 at 5:17 pm #1419940Now the logo on mobile is enormous!
Damn! Check pleaseeee!!September 21, 2023 at 6:33 pm #1419948I don’t know if you have changed something but now I see this..
September 22, 2023 at 9:41 am #1420004Hello,
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!
YigitSeptember 22, 2023 at 2:06 pm #1420043Hi, 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?September 22, 2023 at 3:22 pm #1420057CSS removed but without success…..
Damn.September 22, 2023 at 5:17 pm #1420070This is what!
September 22, 2023 at 5:21 pm #1420071Is it possible to have less space between the logo and the buttons? I think is too much…
September 23, 2023 at 7:03 pm #1420136Hi,
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:
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 -
AuthorPosts
- The topic ‘logo at center and above the submenu’ is closed to new replies.