Solved

change links on wordpress

Posted on 2014-04-27
5
258 Views
Last Modified: 2014-05-03
HI,

How do I simply change the links color, hover , background on the links on the menus.

It ISNT simple obviously.  I have tags that change font but not background and I dont want things spread across multiple tags  as I am doing.


.site-navigation a {
      color: #ffffff;
       font-size:12px;
background-color:red;

     display: block;
}

/*font color on links side menu*  DOESNT work  and variants link #menu-menu2 work for 1 menu only*/
 a:hover, a:focus {
 color: black !important;
background-color:white;
 }
0
Comment
Question by:jagguy
5 Comments
 
LVL 9

Expert Comment

by:Trenton Knew
ID: 40026349
This can depend heavily on the theme you are using.  Sometimes it's as simple as using "customize theme," while other times you might have to view the inspector to see what CSS is being applied and reverse engineer the style sheet.

Got a link to the page?
0
 

Author Comment

by:jagguy
ID: 40026426
I am using twenty fourteen

http://www.mymrt.net/wordpress/
0
 
LVL 34

Expert Comment

by:Dan Craciun
ID: 40026556
If you want to modify links for the left side menu, note that the menu is in a div called "secondary". Then you just need to add this to your stylesheet:

#secondary a {
    color: #ffffff;
    background-color:red;
}

#secondary a:hover, a:focus {
    color: black !important;
    background-color:white;
 }

HTH,
Dan
0
 
LVL 18

Expert Comment

by:Rartemass
ID: 40026630
I would remove the !important part as well. It will cause issues in a lot of scenarios. There are only a few cases I would actually use !important and even then I'd try to find a way around it.
0
 
LVL 28

Accepted Solution

by:
chilternPC earned 500 total points
ID: 40029863
you can download a plugin for theme Fourteen to allow you to easily change the colours of nearly everything the link is here:

https://wordpress.org/plugins/fourteen-colors/

no need to hack the theme, which the changes could be lost net time there is an update.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

911 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

17 Experts available now in Live!

Get 1:1 Help Now