- This topic has 7 replies, 2 voices, and was last updated 4 years, 5 months ago by
Leo.
-
AuthorPosts
-
December 10, 2018 at 7:50 pm #753404
Noemi
Hi,
The navbar logo is on the upper left- how do I center align the logo on mobile?
I’m using child theme
December 10, 2018 at 8:37 pm #753424Leo
StaffCustomer SupportHi there,
Can you try my suggestion #2 here?
https://generatepress.com/forums/topic/borders-of-logo-showing-in-navigation-bar/#post-753310December 10, 2018 at 10:13 pm #753448Noemi
Leo,
I tried your suggestion # 2, but the navbar logo still looks non-centered and there’s a huge gap in Mobile.
Please help with CSS to shorten the menu/navbar in mobile without reducing size of navigation logo— If you look through mobile, you can see the large gap between logo and the “menu”-icon. How to reduce this large gap without making logo smaller.
My current CSS is:
.main-navigation .navigation-logo {
padding-top: 0px;
}
.main-navigation .navigation-logo img {
height: 100px;
}
.site-header {
padding-top: 0;
padding-right: 0;
}
.main-navigation .main-nav > ul > li:first-child > a {
padding-top: 8px;
}
#site-navigation {
background: rgb(2,0,36);
background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 35%, rgba(0,212,255,1) 100%);
}December 11, 2018 at 9:26 am #753940Leo
StaffCustomer SupportJust checked on my phone and it looks good to me now?
http://www.screencast.com/t/kTpGeHh3wvmKDecember 11, 2018 at 10:42 am #754010Noemi
a) In mobile, Is there a way for me to center the 3 lined-menu below the logo? (Without changing the way it currently looks on desktop)
b) Also, if you look close, there are thin vertical borders around the logo, and I would like to remove these. I put in the CSS code for the gradient background yesterday. I don’t want to necessarily stretch the logo disproportionately!
December 11, 2018 at 10:51 am #754021Leo
StaffCustomer Supporta) Are you currently using the Hooks Elements to remove the site header?
b) I’ve answered it here: https://generatepress.com/forums/topic/borders-of-logo-showing-in-navigation-bar/#post-754019
Please reply to the original topic where you’ve asked the question.December 11, 2018 at 12:45 pm #754104Noemi
a) I did not use the Hooks element (not sure where to find it). I just disabled the the Header under Disable Element-settings. In addition, I also used CSS code: .site-header {
padding-top: 0px;
}b) Oh Okay, thank you. I photoshopped logo to make the transparent background, but it’s still showing… Do you have any recommendations?
Thank you,
December 11, 2018 at 5:02 pm #754220Leo
StaffCustomer Supporta) Ok so remove that CSS and add this:
@media (min-width: 769px) { .site-header { display: none; } }
b) Please reply here: https://generatepress.com/forums/topic/borders-of-logo-showing-in-navigation-bar/#post-754019
-
AuthorPosts
- You must be logged in to reply to this topic.