Support » Themes and Templates » Changing active link format in “single post”

  • Resolved Farmhand

    (@farmhand)


    I have the template Touchwood. I didn’t like the way the active links appeared so I changed it by customizing the codes on the stylesheet. I made them go bold green when you pass the cursor over them. However, if I click on a single post, the new changes do not apply. I have looked all over for where I would place the coding, but still have not been successful.

    Can anyone tell me what to do? My blog is at http://www.piscatawayacres.com/blog if that helps.

    I appreciate any help you can give.

    Farmhand

Viewing 3 replies - 1 through 3 (of 3 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    the link style in single posts are ruled by the class .entrytext.

    changing this section of your style.css:

    .entry a:link,
    .entry a:visited,
    .entry a:active {color:#22541D; text-decoration: none}
    .entry a:hover {color:#27A41A;font-weight: bold}

    into:

    .entry a:link,
    .entry a:visited,
    .entry a:active,
    .entrytext a,
    .entrytext a:visited,
    .entrytext a:active {color:#22541D; text-decoration: none}
    .entry a:hover,
    .entrytext a:hover {color:#27A41A;font-weight: bold}

    should work 😉

    Or you could prepend .single before any entry to make them effective only in single posts.

    Thank you, both. Your information helps a lot. I used the first solution successfully, but I’ll keep the second in mind for future reference.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing active link format in “single post”’ is closed to new replies.