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

    Hi,

    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

    a{

    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

    #39085

    Hey,

    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.

    #39086

    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.

    #39087

    Just use following code:

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

    #39088

    Great, thanks Dude, that worked.

    #39089

    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.