- This topic has 13 replies, 3 voices, and was last updated 8 years, 5 months ago by
Tom.
-
AuthorPosts
-
October 31, 2017 at 11:51 am #413807
Moses
Hey, I had a similar problem before and was given this snippet:
.main-navigation.navigation-stick .navigation-logo { float: right; } .nav-aligned-center .main-navigation.navigation-stick { text-align: left; }But It’s not working for me this time.
I want my sticky logo to float right, and my sticky navigation to float left. site is RTLOctober 31, 2017 at 3:59 pm #413919Leo
StaffCustomer SupportHi there,
Is the navigation location set to align center?
November 1, 2017 at 2:09 am #414092Moses
No. it was set to left,
now I re-added the above snippet and made it centred aligned so you can check it again please
November 4, 2017 at 4:44 am #416005Moses
anything?
November 4, 2017 at 7:57 am #416116Leo
StaffCustomer SupportOops sorry not sure how this slipped through.
Can you activate the sticky navigation again?
Thanks!
November 4, 2017 at 9:28 am #416164Moses
Done
November 4, 2017 at 11:22 am #416216Leo
StaffCustomer SupportCan you try this method? https://docs.generatepress.com/article/navigation-logo/#navigation-as-header
I believe this is the look you are going for.
Let me know 🙂
November 5, 2017 at 1:28 am #416464Moses
Hey Leo, the floats are still swapped, navigation on the right and logo on the left and I want them exactly the opposite
November 5, 2017 at 9:15 am #416595Leo
StaffCustomer SupportWhat if you set the alignment to left? https://docs.generatepress.com/article/navigation-layout/#navigation-alignment
November 5, 2017 at 9:24 am #416604Moses
Tried, no change (you can check now it’s aligned to the left)
November 5, 2017 at 9:49 am #416614Leo
StaffCustomer SupportYou have this CSS added which is making the logo on the left side:
.main-navigation .site-logo.navigation-logo { position: absolute; left: 0; top: 0; }Try
right: 0;I’ll check with Tom why the align left isn’t working.
November 5, 2017 at 10:16 am #416626Tom
Lead DeveloperLead Developer1. Add this CSS:
.rtl .main-navigation li { float: left; }2. Remove this CSS you’ve added:
.main-navigation .site-logo.navigation-logo { position: absolute; left: 0; top: 0; }And replace it with this:
.main-navigation .site-logo.navigation-logo { position: absolute; right: 0; top: 0; }November 5, 2017 at 11:39 pm #416886Moses
Thanks tom and leo !
November 6, 2017 at 9:04 am #417210Tom
Lead DeveloperLead DeveloperYou’re welcome!
-
AuthorPosts
- You must be logged in to reply to this topic.