- This topic has 14 replies, 3 voices, and was last updated 5 years, 6 months ago by David.
-
AuthorPosts
-
September 30, 2018 at 1:53 pm #690172Steve
Hey guys,
I have GeneratePress Premium and I’m wondering if I can customize one of the menu options by putting a border around it or coloring it a different color, like the “Donate” menu option on this website: https://dashdelivers.org/ (This website came from https://generatepressgallery.com) If so, where do I go to change its color?
thanks so much!
September 30, 2018 at 4:18 pm #690234DavidStaffCustomer SupportHi there,
this article explains how:
https://docs.generatepress.com/article/adding-buttons-navigation/
If you get stuck styling the button then let us know π
October 1, 2018 at 3:14 pm #691082SteveThanks David! For Step #2 (Add the CSS), can you let me know where I go to add the CSS in?
Also, I assume that “.main-navigation .main-nav ul li.[This is where you enter in your Custom Class name] a {” Please correct me if I’m wrong.
thanks again!
October 1, 2018 at 3:15 pm #691083LeoStaffCustomer SupportOne of these methods here: https://docs.generatepress.com/article/adding-css/
and Yes π
October 1, 2018 at 3:17 pm #691087SteveThanks Leo! Do you recommend “Simple CSS” or “Additional CSS”? Sorry but I’m new to coding π
October 1, 2018 at 3:19 pm #691089LeoStaffCustomer SupportTry Additional CSS first π
October 1, 2018 at 3:20 pm #691091SteveAwesome, thanks!
October 1, 2018 at 3:35 pm #691093SteveOkay I’ve tried the Additional CSS and it works great. Quick question, is there a way to set the hover color for the button? Also, how to make the button appear on tablet/phone navigation menu as well?
thanks again!
October 1, 2018 at 7:20 pm #691160LeoStaffCustomer SupportYou can do this for the hover color:
@media (min-width:769px) { .main-navigation .main-nav ul li.nav-button a:hover { background-color: #ffffff; border: 2px solid #000000; color: #000000; } }
Mobile will be a bit tricky. Can you link me to the site in question?
October 1, 2018 at 7:25 pm #691163SteveThanks Leo! I put the code in and the hovering works, but the button’s background becomes transparent when I hover over it, when it should be solid. Is there a way to fix this?
October 1, 2018 at 7:34 pm #691167LeoStaffCustomer SupportEdit the hover CSS to this:
@media (min-width: 769px) { .main-navigation .main-nav ul li.menu-button a:hover { background-color: #574521 !important; border: 2px solid #574521; color: #ffffff; } }
How would you want the button to show up?
You can make it show up by removing the
@media (min-width: 769px) { }
of CSS.October 1, 2018 at 7:40 pm #691169SteveThanks Leo! I tried both suggestions and it worked great. Final question, on tablet and mobile, is there a way to limit the button color to cover just the length of the text (Just over the word “Contact”). If no then no worries, it’s fine the way it is. Thanks again!
October 2, 2018 at 2:53 am #691344DavidStaffCustomer SupportHi there,
you can add a
display: inline-block;
property to your navigation button CSS. The downside of this is that only the ‘button’ is clickable as opposed to the entire row.October 2, 2018 at 9:37 pm #692095SteveAwesome, thanks David!
October 3, 2018 at 1:13 am #692158DavidStaffCustomer SupportYou’re welcome
-
AuthorPosts
- You must be logged in to reply to this topic.