- This topic has 13 replies, 4 voices, and was last updated 7 years, 6 months ago by Tom.
-
AuthorPosts
-
September 29, 2016 at 3:40 pm #230454Diego Fernando
Hello Tom
I looking for some answers to my ideas, I found this page: http://www.rswebsols.com/ has two colors in its main menu: yellow and black
I want to meet you … How to put double color in the main menu, just as it did this website.
I want to thank for GP. It is wonderful, thank you very much.
September 29, 2016 at 4:24 pm #230458Wendy PeckYou can make your menu hover and current background color different in the Customizer. Got to Appearance/Customize/Colors/Primary Navuigation and change colors as desired. The home page does not show the new background color, but all the other pages will. (Can anyone help with the why and how to fix on home not reading current?)
September 29, 2016 at 6:47 pm #230477Diego FernandoHello Wendy. I’m not speaking about menu hover and current background color. I’m saying to have two colors in the menu background, like the web site. One color as the main background, and one second color as a thin line below the menu
Thanks for your help
September 29, 2016 at 7:01 pm #230479Jean Paiva DeveloperHey Diego,
You can achieve this adding this custom css:
.main-navigation { border-bottom: 5px solid #000; }
Hope I’ve helped you π
September 29, 2016 at 7:04 pm #230480Wendy PeckSorry, I didn’t even see the colored line. I do that with a border on the inside-nav element when I need a border color. I use either Simple CSS plugin or a child-theme style.css to add the bits of CSS I want. I did this to the site http://www.realfoodtips.com/ to add the lighter grey on the top of the nav bar. Here’s the CSS for that one.
.inside-navigation {
border-top: solid 4px #ccc;
}Wendy
September 29, 2016 at 7:11 pm #230481Wendy PeckDiego’s is closer to what you need. Mine is on a site with a contained nav bar, so to do the full width, you will need to use the main-navigation class.
September 29, 2016 at 7:23 pm #230483Diego FernandoHi Jean and Wendy. It works.
And sorry I had not told them that I want the second line appears when the user moves the scroll down.How can I do to make this appears only when I go down on the website?
Thank you for your help
September 29, 2016 at 7:32 pm #230484Jean Paiva DeveloperFor that just target this id:
#sticky-navigation { border-bottom: 5px solid #000; }
September 29, 2016 at 7:57 pm #230495Diego FernandoHello Jean. It doesn’ work.
That’s the code I put:
#sticky-navigation {
border-bottom: 5px solid #fe9b00;
}September 30, 2016 at 5:36 pm #230795Jean Paiva DeveloperDiego, sorry for late reply, busy day…
For me worked this solution, where did you placed your css code? I suggest you to follow this tutorial on how to add custom css: https://generatepress.com/knowledgebase/adding-css/
Also if you have a link for your site that I can look at, maybe I can be more accurate.
October 1, 2016 at 6:15 pm #230993Diego FernandoHi Jean. Thanks for answering
My site is ingenioempresa.comI use Jetpack custom css. I copied and pasted the last code sent ..
After your message, I tryed with Simple CSS but below main line doesn’t appear.
Sorry if my english is hard to understand π
Thank you
October 1, 2016 at 9:31 pm #231009TomLead DeveloperLead DeveloperThis should work:
.main-navigation.is_stuck, .main-navigation.navigation-clone { border-bottom: 5px solid #eb9812; }
October 2, 2016 at 9:01 am #231090Diego FernandoHello Tom. Awesome, it worked. Thanks.
Jean and wendy, thanks for the support too.October 2, 2016 at 10:13 am #231102TomLead DeveloperLead DeveloperPerfect π
-
AuthorPosts
- You must be logged in to reply to this topic.