Centering nav menu (not mobile)
-
I have centered my logo but how do I center the nav menu for desktop views?
-
Hello @hunnsdon,
What is your site URL? Or please try to add this to Customize => Additional CSS:
.onepress-menu { float: none; display: table; margin: 0 auto; }
Let me know!
Hello there
Yes that worked. The nav is centered but there is now extra space above and below the nav menu. See dropbox screenshot links below. I can see it jump very quickly from the correct position to the position with extra space. It appears to have a line height of 192px.
I also use some css from another forum reply from FameThemes for the logo.
.site-branding { width: 100%; text-align: center ; }
I don’t share site URL’s, unless you have another way to provide you with this privately. I have however updated an old ticket to FameThemes, you can find it by using my name ‘hunnsdon’
Is that enough info?
Please add this:
.onepress-menu { line-height: 75px !important; }
Btw, I’m David from FameThemes 🙂
Hello David
That is absolutely excellent, yes that fixed the issue!
Also now the mobile burger menu needs centering. How is that done?
I do wish the pro theme wasn’t a yearly payment. I would pay an update fee but to have to pay the full cost each year is prohibitive. I know Fame have FameClub Lifetime, still expensive if you don’t want the rest of the themes. Please don’t reply about this issue, WordPress might not like that. Although you have my FameThemes account contact.
Thank you
@hunnsdon- This reply was modified 5 years, 9 months ago by hunnsdon.
Hi @hunnsdon,
Please add this:
#nav-toggle { float: none; margin: 0 auto; }
For any question about premium version, please send us an email via our contact page.
Yes David that works great.
Can I put a request in for these to be added as a theme feature / option. I think this adds more flexibility to an already great theme.
🙂
Hi @hunnsdon,
Thanks for your idea. But I think it won’t be added because of not many people like that layout 🙂
Surely that wouldn’t matter if it is an option, users can make that choice themselves. i.e. tick boxes.
- This reply was modified 5 years, 9 months ago by hunnsdon.
- The topic ‘Centering nav menu (not mobile)’ is closed to new replies.