Solved

Change navigation font color on mobile sizes

Posted on 2016-10-10
8
46 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 22

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 22

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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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
 
LVL 22

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 22

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with spacing columns on a row in a table 10 23
Input box width 6 25
Place text over image using CSS 6 43
Center div containing a script 6 14
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

776 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