x

Can't Make Any Modifications to My Navigation Bar

I just started setting up my site at https://www.voicestewards.com/ using the Clean Lines theme.

I'm really surprised by the lack of editing capabilities on this platform. I've spent a couple hours at least today trying to figure out how I can modify the colors on my navigation bar. Everything I've found online has not worked at all. I have some experience with CSS and I'm imagining I need to go that route, but I can't find anything to work with.

I would like to change the text color, as well as the hover and selected link colors. Additionally, when I switched the design from full width, a horizontal line on both sides of the links disappeared. I would like to bring that back if possible, as well as change the color. It might just need to be shorter so it doesn't interfere with the margins, but I don't know how to do so.

Any help would be much appreciated.

4,758 Views
Message 1 of 5
Report
1 Best Answer

Best Answer

@voicestewards

You are definitely on the right track, it just comes down to where to look. The nav is definitely complicated to sort out but it is doable. First off, here is a link to an answer I gave recently regarding how to target the last item in the navigation. This doesn't directly answer everything you need in your question so I will dig a bit more into your question.

Below are some CSS examples for how to change text color, hover colors and selected link colors (I have switched to the Clean Lines theme to test)

/*text color of all links*/
#navigation li a {
	
	color: red;
}

/*background color of active link*/
#navigation li#active {
	
	background-color: black;
}

/*background color of hovered link*/
#navigation li:hover {
	
	background-color: palegreen;
}

/*color of hovereded link text*/
#navigation li:hover a {
	
	color: black;
}

/*text color of active link*/
#navigation li#active a {
	
	color: white;
}

As for the question of the lines of full width, I too had them disappear. It looks like when you toggle the option to full width (Theme > Theme Options) it omits them by default. You can add them back in yourself by using

#navigation:before, #navigation:after {

	display: inline-block !important;
}

From here it's trivial to then change the color

#navigation:before, #navigation:after {

	background-color: red;
	display: inline-block !important;
}

Hopefully this covers everything you were looking for. Let me know if you need any more guidance. I will agree that customizability is very much the responsibility of the user and their external knowledge as the basic options provided do leave a bit to be desired. I don't know the browser you use (I favor Chrome for work) but each come with a variant of "Developer Tools" which can be accessed by pressing F12. From here you can poke around your html and select elements on the page if you're curious about how to access them by id, tag, class, etc. Another way is to hover over something on the webpage, right click and choose "Inspect" which will pull up the Dev Tools right onto that object. I don't know what "some experience with CSS" means so I'm adding all of this in the event you would find it useful in the future. I don't mean to insult your ignorance if that is not the case Smiley Happy

For my examples I stick them within the global footer typically from within the settings (Settings > SEO). Long term or with more CSS you can always put these at the theme level styles (Theme > Edit HTML/CSS). 

View Best Answer >

4,736 Views
Message 6 of 5
Report
4 REPLIES 4

Best Answer

@voicestewards

You are definitely on the right track, it just comes down to where to look. The nav is definitely complicated to sort out but it is doable. First off, here is a link to an answer I gave recently regarding how to target the last item in the navigation. This doesn't directly answer everything you need in your question so I will dig a bit more into your question.

Below are some CSS examples for how to change text color, hover colors and selected link colors (I have switched to the Clean Lines theme to test)

/*text color of all links*/
#navigation li a {
	
	color: red;
}

/*background color of active link*/
#navigation li#active {
	
	background-color: black;
}

/*background color of hovered link*/
#navigation li:hover {
	
	background-color: palegreen;
}

/*color of hovereded link text*/
#navigation li:hover a {
	
	color: black;
}

/*text color of active link*/
#navigation li#active a {
	
	color: white;
}

As for the question of the lines of full width, I too had them disappear. It looks like when you toggle the option to full width (Theme > Theme Options) it omits them by default. You can add them back in yourself by using

#navigation:before, #navigation:after {

	display: inline-block !important;
}

From here it's trivial to then change the color

#navigation:before, #navigation:after {

	background-color: red;
	display: inline-block !important;
}

Hopefully this covers everything you were looking for. Let me know if you need any more guidance. I will agree that customizability is very much the responsibility of the user and their external knowledge as the basic options provided do leave a bit to be desired. I don't know the browser you use (I favor Chrome for work) but each come with a variant of "Developer Tools" which can be accessed by pressing F12. From here you can poke around your html and select elements on the page if you're curious about how to access them by id, tag, class, etc. Another way is to hover over something on the webpage, right click and choose "Inspect" which will pull up the Dev Tools right onto that object. I don't know what "some experience with CSS" means so I'm adding all of this in the event you would find it useful in the future. I don't mean to insult your ignorance if that is not the case Smiley Happy

For my examples I stick them within the global footer typically from within the settings (Settings > SEO). Long term or with more CSS you can always put these at the theme level styles (Theme > Edit HTML/CSS). 

4,737 Views
Message 6 of 5
Report

Well, that completely handled what I was going for. I just had to add <style> tags. It took me a minute to realize why it wasn't working, but then it allowed me to perfectly take care of the problems.

I was going crazy yesterday. The CSS you shared is a tremendous resource.

Thank you very much!

4,728 Views
Message 6 of 5
Report

@voicestewards

Glad you got it working. I apologize for not including the <style> tags! If you need any other styling help feel free to reply or message me directly.

4,726 Views
Message 6 of 5
Report

Is there a way to keep all the menu options in one row?  When the submenus from the top row spill down, it covers the bottom row making it hard to navigate?

Thanks.

1,091 Views
Message 6 of 5
Report
This thread has been archived and locked. Please start a new thread if you would like to continue the conversation.