Solved

wordpress link

Posted on 2014-04-25
3
394 Views
Last Modified: 2014-04-25
Hi,

I have a wordpress link in the primary menu twentyfourteen.  The below code changes the link background but not foreground as it stays green and not red?



.menu-item-26
{
background-color:blue;
color:red;

}
0
Comment
Question by:jagguy
3 Comments
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 40022442
In the CSS cascade you may find that the anchor tag is the thing with the most "immediate" styling, and changing the menu that wraps the anchor does not change the anchor itself.  In other words, the background-color applies to the menu-item-26 tag but the only text inside that element is styled somewhere else because it is a different tag.
0
 

Author Comment

by:jagguy
ID: 40022508
Ok but how do I get this tag?


For example the tag for sample page link is menu-item-5 and where is the tag that styles the foreground?
http://www.mymrt.net/wordpress/
0
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 500 total points
ID: 40022836
For your links you need to modify this:
.site-navigation a {
      color: #fff;
      display: block;
      text-transform: uppercase;
}

HTH,
Dan
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

747 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

12 Experts available now in Live!

Get 1:1 Help Now