• Hi all,

    I have a blog – here – and I want to modify the properties of only certain links (the ones in the body of my posts).

    The change I want is from this:

    a:hover, a:active {
      color: #3B3B3B;
    }

    to:

    a:hover, a:active {
     background-color: blue;
     color: white;
    }

    but if I do that, ALL the links change.

    I guess the solution is creating a class. But will I have to go back to HTML mode and add the link class for EACH and every link in my blog posts? Is there a better alternative?

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    For CSS problems, consider installing Firebug. It’s a great CSS tool.

    Try a more specific CSS rule instead.

    .entry a:hover, a:active {
     background-color: blue;
     color: white;
    }

    See if that effects just the post links.

    Thread Starter outspan

    (@outspan)

    Hi,

    thank you for the reply. I added that code to the end of my style.php, and unfortunately nothing happened. Any other ideas?

    thanks

    <!-- test -->

    this is not a valid css comment and breaks the stylesheet, i.e. the styles after it don’t get applied.

    use:

    /* test */

    Thread Starter outspan

    (@outspan)

    Thank you! Now it works, except that the “DamnSexyBookmarks” links are also affected — I guess they must be part of the “entry.” How do I fix that? The code in single.php is:

    <div class="entry">
    <?php the_content('Read the rest of this entry ?'); ?>
    </div>

    so I don’t know where to go to put the SexyBookmarks code out of the entry.

    Thread Starter outspan

    (@outspan)

    I fixed that after a bit of searching… now I’ve been trying to fix this very last thing for the past hour, but I have no idea where to start!

    https://imageshack.us/photo/my-images/339/dog2l.jpg/

    I’d like the highlighted part to be just directly over the text instead of going over the image. If you can help me with this, that would be my last question ??

    thank you!

    please contact the seller of your commercial theme (‘tidalforce’ by elegantthemes) for support with these kind of details.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Modifying style of links in post body’ is closed to new replies.