Hi guys!
I’m building a new website and I chose your Vantage theme for it.
I would like to align the main nav menu to the right, next to the search form (like here on SiteOrigin.com).
I searched the style.css and I added “float: right” to this code (line 646):
.main-navigation ul{ list-style:none; margin:0; padding-left:0; zoom:1; float: right; /* Second level menu items */ }
The problem is that the menu moves correctly to the right, but at the same time – and I don’t know why – the contact form in the page moves left.
The contact form is made with Contact Form 7 plugin and the page is built with Page Builder. I created a row with three columns and I pasted the contact form code in the middle one, to get the form centered in the page.
Is this the right way to align the menu to the right?
Thank you very much indeed for your help, I really like your theme and hope to solve the problem to continue working on it.
Best,
Francesco
Problem solved!
I needed to modify the code on line 662, not 646:
Thank you anyway. I hope other people will find this post helpful.
Best,
Francesco
Hi
Thanks for running Vantage.
Please remember that any changes made to theme files like style.css will be lost during theme updates. Code level changes need to be kept in a child theme or in the case of CSS you can insert your changes under Appearance > Custom CSS.
The best way to right align the main menu would be to insert the following under Appearance > Custom CSS:
Hope that helps.
Hi Andrew,
Thank you very much indeed for your help! Your answer totally solved my problem.
Best regards,
Francesco
Super, glad that did the trick. All the best.