• Resolved aejohnson26

    (@aejohnson26)


    How can I change the link colour from black (like the rest of the text) to another colour?

    I’ve tried altering the stylesheet css with:

    a {
    outline:none;
    text-decoration:none;
    color: #e83187;
    }

    and inputting this in a custom css plugin but the colour stays black.

Viewing 10 replies - 1 through 10 (of 10 total)
  • What is the link to your site because I tried your code and it worked fine for me.

    Thread Starter aejohnson26

    (@aejohnson26)

    It’s getglam.co.uk

    What link you trying to change?

    The links to your posts such as

    “First Impressions | The Fragrance Shop Discovery Club Spring 2015”

    Thread Starter aejohnson26

    (@aejohnson26)

    No, links within text. For example at the end of each post I have my signature with links to Twitter etc underneath, I want these to appear a different colour (not black like the rest of the text…)

    If those are just text you added you can create a custom ID or Class and just edit the color that way.

    Example HTML:

    <div id="social-links"><a href="http://www.bloglivin.com" target="_blank">Bloglivin</a> | <a href="http://www.twitter.com" target="_blank">Twitter</a> | <a href="http://www.instagram.com" target="_blank">Instagram</a><div>

    CSS:

    #social-links a {
    color: #e83187;
    }

    Sam

    (@soumendra)

    Hello,

    You have added a p tag and added your details inside it. Please try assigning a unique ID or class to the p tag so that you can style them. Or you can add inline CSS there.

    Currently you have added this:

    <p style=”text-align: center;”>
    <img class=” size-full wp-image-146 aligncenter” width=”100″ height=”50″ alt=”signature” src=”http://getglam.co.uk/wp-content/uploads/2015/02/signature1.png”&gt;
    Bloglovin
    replace this with this:
    <p style=”text-align: center; color: #ff0000;”>
    <img class=” size-full wp-image-146 aligncenter” width=”100″ height=”50″ alt=”signature” src=”http://getglam.co.uk/wp-content/uploads/2015/02/signature1.png”&gt;
    Bloglovin
    |
    Hope that helps.

    Thank you.

    Thread Starter aejohnson26

    (@aejohnson26)

    i am wanting it to affect all links within posts, rather than just on the signature…

    Sam

    (@soumendra)

    for that you can try this in your Custom CSS:

    .entry-content a {
        color: red;
    }

    You can adjust the color as per your requirement.

    Thank you.

    Thread Starter aejohnson26

    (@aejohnson26)

    Thank you!!!

    Sam

    (@soumendra)

    Welcome. 🙂

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Link Colour’ is closed to new replies.