Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #2739


    I have searched the forum but can’t seem to find anything that answers exactly what I need to do.

    I would like to change ONLY the style of the links within blog posts (the ones that are currently underlined, and change to the main background colour on hover). I want to add a background colour to links within my posts. I have tried changing


    text-decoration: underline;


    within styles 1,2,3 but this changes all the links on the site, including my post headings etc.

    Please could you point me in the right direction?

    Thank you



    try to add following code to style1/2/3.css:

    .entry-content a, .entry-content a:hover{
    background: #000 !important;

    You can adjust the color as you like.


    Thanks Dude, that’s worked! How could I change just the a:hover so the background changes when you hover over the link?

    Thanks for your help.


    Just use following code:

    .entry-content a:hover{
    background: #000 !important;


    Great, thanks Dude, that worked.


    Glad that I could help you.

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Change style of links within post text only’ is closed to new replies.