- This topic has 30 replies, 3 voices, and was last updated 3 years, 8 months ago by
David.
-
AuthorPosts
-
September 11, 2018 at 11:43 pm #674990
Amit
Hi,
I am interested in centering the logo of my site something like roastycoffee.com with navigation divided on both sides. Also, what should be the optimal size of image to keep here as I want to have sticky navigation.GeneratePress 2.1.4GP Premium 1.7.2September 12, 2018 at 2:49 am #675162David
StaffCustomer SupportHi there,
so this is the simplest method for adding logo in center of navigation:
https://docs.generatepress.com/article/centering-logo-navigation/
For the logo size, i always work on the basis of the menu item line-height. Roastycoffee for example us 150px x 42px
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2018 at 3:29 am #677020Amit
Things worked but the logo is gone when viewed on mobile. And when I clicked on some menu option on mobile, the nav bar changes to orange color.
September 14, 2018 at 3:41 am #677035David
StaffCustomer SupportOk looking good. So do you want the logo above the Navigation on mobile?
For the color fix are you able to flush the autopotimize cache and disable it.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2018 at 4:51 am #677079Amit
I want the logo between the Menu button and the search icon, not above that as the area after the button is empty. I am able to empty the cache but won’t be able to disable it.
September 14, 2018 at 5:02 am #677085David
StaffCustomer Supportfor the Mobile logo, activate the Mobile Header in Customiser > Layout > Header. And add the logo there. We can then use some CSS to re-order the elements.
Whilst the cache is on i cannot see where the CSS effecting the mobile hover styling is coming from. Try the mobile header first and lets see.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2018 at 5:10 am #677088Amit
Ok, let me switch off the cache for some time….check now…
September 14, 2018 at 5:15 am #677090Amit
The logo is also coming weird in mobile. It’s coming at top of the menu and search button..
September 14, 2018 at 6:23 am #677133Amit
I want something like this but on mobile
https://www.nataliabasdeki.com/September 14, 2018 at 10:02 am #677363Leo
StaffCustomer SupportI can’t quite tell because you have caching plugin on but looks like you have this CSS added?
.mobile-header-navigation .mobile-header-logo img { height: 80px; }
This article should help to center mobile header logo:
https://docs.generatepress.com/article/centering-logo-mobile-header/Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 14, 2018 at 8:35 pm #677599Amit
I am unable to figure out as from where that CSS is coming up as there is nothing like this in the additional css as well as in the child css. Before this step of positioning the logo at the center of navigation, everything was fine and the logo was displayed in line between Meny and Search button.
Please help me out and if you need to login to check, I can provide credentials!September 15, 2018 at 2:56 am #677685David
StaffCustomer SupportHi there,
can you switch off autoptimize? Whilst it is on its really hard to diagnose the issue, it may even be the cause of the problem when it combines and minifies the CSS.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/September 15, 2018 at 3:26 am #677707Amit
Please check, I have disabled both Wp Super Cache as well as Autopitimze…
September 15, 2018 at 3:41 am #677709Amit
If I am enabling the mobile Header, the Logo vanishes and there is no name of site anywhere, whereas, If I disable mobile header, the logo comes in But it’s a line above the Menu and Search button. I want the logo to be displayed between the Menu button and Search icon.
September 15, 2018 at 3:48 am #677715David
StaffCustomer SupportOK so looks like the hover color bug has gone. So sounds like a caching issue.
So next – where you enabled the mobile header you can add a logo to it. Do that and then i can provide the CSS to get it aligned how you need.Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.