WordPress.org

Support

Support » Themes and Templates » [Resolved] CSS and links

[Resolved] CSS and links

  • As an unexperienced CSS and web designer I have trouble locating in my CSS file the line where I can change the color of a link.

    If I change “a visited” then also my nav bar changes color and I only want to change the color of the link itself.

    If you browse to My Site you see with the last post that the word fascinations is not high-lighted although it is a link. Do I need to add some code to achieve this? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • To your CSS file, add something like this:

    .storycontent a, .storycontent a:visited {
     color: #999;  /*This is the color of the regular link*/
     text-decoration: none;
    }
    
    .storycontent a:focus, .storycontent a:hover, .storycontent a:active {
     color: #3b4a61; /*This is what color it becomes when you hover or click*/
     text-decoration: underline;
    }

    Worked like a charm, thanks… btw even the colors are right, how did you retreive those? I thought style.css can not be read….

    Something else; the code from SusieN worked but one the catagories in a post is colored and the rest is grey? The word “China” is colored and the rest isn’t. How do I solve this? Thanks in advance.

    I removed and added the category and it was solved…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] CSS and links’ is closed to new replies.