Solved

Change navigation font color on mobile sizes

Posted on 2016-10-10
8
35 Views
Last Modified: 2016-10-14
What do I need to modify so that the navigation on mobile devices has white text where the blue mouse over color is?  Below is the only responsive css code I could find on the css file.
/* Responsive Menu
--------------------------------------------- */

.responsive-menu-icon {
	cursor: pointer;
	display: none;
}

.responsive-menu-icon::before {
	content: "\f333";
	display: block;
	font: normal 20px/1 'dashicons';
	margin: 0 auto;
	padding: 10px;
	text-align: center;
}

Open in new window


Screen Shot
http://screencast.com/t/9OSrr0H2xA2

Beta Site
http://298.6e8.myftpupload.com/
0
Comment
Question by:nsitedesigns
  • 4
  • 4
8 Comments
 
LVL 21

Expert Comment

by:Kim Walker
ID: 41837184
I would not modify the theme css file. It may be replaced if the theme is updated. I would instead create a custom css file that is listed below the theme css file. The style that would override the color of the mobile menu text is:
.genesis-nav-menu.responsive-menu .menu-item > a:hover {
    color: #fff;
}

Open in new window

0
 

Author Comment

by:nsitedesigns
ID: 41837200
Yes, sorry, I meant I would use simple custom css plugin.  Your suggestion worked for the main navigation buttons on mobile device but the submenus don't display any change at all.  is there a way to add the blue background with white text to submenus too?  If you want me to create a new question, I will.  Thanks
0
 
LVL 21

Expert Comment

by:Kim Walker
ID: 41837209
Those items currently have a transparent background color. The selector for the style that targets them is
.genesis-nav-menu.responsive-menu .sub-menu li a, .genesis-nav-menu.responsive-menu .sub-menu li a:hover

Open in new window

0
 

Author Comment

by:nsitedesigns
ID: 41837234
Thanks.  I tried adding a background color to the above selector but it didn't appear to take.

.genesis-nav-menu.responsive-menu .sub-menu li a, .genesis-nav-menu.responsive-menu .sub-menu li a:hover {
  background-color:#0088ce;
  color:#fff;}

Open in new window


Any idea what I did wrong?
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 21

Expert Comment

by:Kim Walker
ID: 41837701
Perhaps I misunderstood. Are the submenus displayed when you click the down arrow at the end of the main menu item? Those items have changed color and background-color.
0
 

Author Comment

by:nsitedesigns
ID: 41838393
I was having a caching issue.  So now, yes, ALL the submenus appear as light blue.  Not really what I was looking for so I will have to see if I can tweak.  Give me a moment.
0
 

Author Comment

by:nsitedesigns
ID: 41838413
Cool - OK got it to work almost perfectly.  Trying now to remove the dark blue hover on current page on sub menus.  Can't seem to find the code to remove that.  It is hard to use Inspect Element to view code because drop down menus go away.
0
 
LVL 21

Accepted Solution

by:
Kim Walker earned 500 total points
ID: 41839392
You could try this selector:
.education-pro-blue .genesis-nav-menu li.current-menu-item > a

Open in new window

I use Firebug in Firefox. I can lock in a hover state with it.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now