Archived topic
Menu centre alignment and separate left aligned call tab
1 reply · Started by Chris on May 30, 2018
Hi guys,
I'm trying to centre align a main nav menu and then add a separate call button with fixed colour, like this preview theme...
Any ideas how I can make this happen with GeneratePress? I've tried adding padding to the right side of a logo to move the menu across which helps centre the menu. This doesn't work with the sticky nav though and looks messywhen you initially scroll down and then obviously I still don't have the separate call us element.
Any suggestions would be hugely appreciated.
Thanks.
Hi Chris,
ok, so looking at it you need to set your logo in the Customiser > Layout > Primary Navigation (and remove the Site Identity one) and set this to sticky and static. Whilst there you can align the navigation center. Thats 90% of it.
The fixed call button, can be added as a menu item. Follow this article to assign the item a class:
https://docs.generatepress.com/article/using-the-wordpress-menu-builder/#custom-classes
then you can target that selector and style it with CSS. To begin with making it float right would be:
.your-custom-class {
float: right !Important;
}