WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change color of link (9 posts)

  1. millemoeller
    Member
    Posted 5 years ago #

    I would like to change the color of links..

    Where do I find the code, and what does it look like?

  2. Technokinetics
    Member
    Posted 5 years ago #

    In your style.css theme file: "a { color: blue; }", "a:hover { red; }".

    Obviously you'll want to replace "blue" and "red" with the colors you'd actually like to use (usually defined with a hex code).

    - Tim

  3. millemoeller
    Member
    Posted 5 years ago #

    Okay.. thank you

    The code "a { color: blue; }", "a:hover { red; }" changed the color of the category-links, tags etc.

    What is the code for the links I create in a post?

  4. Technokinetics
    Member
    Posted 5 years ago #

    Probably ".post a { color: blue; }" and ".post a:hover { color: red; }".

    - Tim

  5. millemoeller
    Member
    Posted 5 years ago #

    There nothing called that..

    Could it be anything else?

  6. Technokinetics
    Member
    Posted 5 years ago #

    Yes; it all depends on your theme. A link to your site would help.

    - Tim

  7. millemoeller
    Member
    Posted 5 years ago #

    Of course.. Sorry.

    http://whynotblog.dk/

    In the first post there is two links called "her"

    And thank you.

  8. Technokinetics
    Member
    Posted 5 years ago #

    Use ".entry p a { color: blue; }", ".entry p a:visited { color: green; }", and ".entry p a:hover { color: red; }".

    - Tim

  9. millemoeller
    Member
    Posted 5 years ago #

    It worked..

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags