[resolved] Changing active link format in "single post" (4 posts)

  1. Farmhand
    Posted 5 years ago #

    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.


  2. alchymyth
    Forum Moderator
    Posted 5 years ago #

    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}


    .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 ;-)

  3. jbbrwcky
    Posted 5 years ago #

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

  4. Farmhand
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic