Solved

wordpress link

Posted on 2014-04-25
3
406 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 109

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

828 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