I can't change the text colour in my links

  • Author
    Posts
  • #2972815

    Hi
    As part of the “house style” in my blog, I have always changed the colour of hyperlinked text to orange. Since last week, I have been unable to do that – the hyperlink text, just shows as a highlighted block but the text colour remains the same.

    I use chrome, but I clear cookies etc everytime I close down the browser.

    I can’t even get it to change if I manually enter the colour instruction in the html code.

    The blog I need help with is britishbookwormblog.com.

    #2972927

    pavanraheja
    Member

    Howdy britishbookworm2014!
    Having a look at your website, the links have a Green color now, all the hyperlinks turn Green on Mouse Hover, you can use this information to be able to manage your Custom Colors
    https://en.support.wordpress.com/custom-design/custom-colors/

    Are you looking for specific help, if you already have the Custom Design features enabled, you can paste the code in the Custom CSS and see if it helps you

    .featured-content a:hover {
          color: #2ea2cc;
    }

    You can manage the color of using the hexa decimal https://www.w3schools.com/colors/colors_picker.asp

    Also, if you point out specifically what would you like to change the colors of, we can help you further.

    #2972929

    Hi. Thanks for your message. Green is the default for the theme. But I always change the hyperlink text to orange and this stopped working last weekend. It simply will jot allow me to change hyperlinked text colours.

    If you look at any of my posts from early june and before you will see that linked text is all orange. This is picked from the standard colours…

    #2972931

    pavanraheja
    Member

    Hi again!
    If you are already on the Premium or Business Plan
    Did you try using the Custom Colors options and the code I posted above? Does it help?
    Let me know how it goes.

    #2972932

    Hi!

    I’m not on the premium plan. I’m on the free plan I’m afraid.

    As i say, this is something that has only stopped working in the last week or so….

    #2972936

    pavanraheja
    Member

    Hi Again!
    Not completely sure of the behaviour if something is not working correctly, can you specify details, how would you change the color, can you walk me through the process, and let us know.

    #2972940

    Of course!

    So normally I would add the link to the text. Then highlight the text that I want to change the colour for. I would then select the “text colour” in the toolbar and select the colour I want to change it to. That would normally change the text to that colour.

    However, even though I do this now (and the html shows that span style colour has changed) the text colour does not change.

    This is only happening with text with a hyperlink behind it. Plain text changes colour just fine.

    Does that help?

    #2972961

    pavanraheja
    Member

    Hi again!
    Thank you for the details further, I will tag the staff to check if it’s a theme feature or if anything changed lately.
    Please be patient with them, someone will get in touch soon!
    How to get a Moderator to reply https://en.support.wordpress.com/getting-help-in-the-forums/#how-do-i-get-a-moderatorstaff-reply-for-my-question

    #2972985

    supernovia
    Staff

    Hi @britishbookworm2014, do you have an example of a previous post where this worked, or did all previous color-changed links also go back to the default? I’m not sure how you were changing link color before.

    #2972986

    supernovia
    Staff

    Also – I can see when your theme was last modified. When did this problem start?

    #2972995

    Hi. Please see previous posts which answer pretty much all your questions.

    If you check any of my posts from say 5th june and before you can see the orange text.

    This has been like this for just over a week

    #2972998

    So normally I would add the link to the text. Then highlight the text that I want to change the colour for. I would then select the “text colour” in the toolbar and select the colour I want to change it to. That would normally change the text to that colour.

    However, even though I do this now (and the html shows that span style colour has changed) the text colour does not change.

    This is only happening with text with a hyperlink behind it. Plain text changes colour just fine.

    This link takes you to the last post where this worked: https://britishbookwormblog.com/2017/06/09/new-release-review-shadow-bridge-sword-awakenings-4-by-j-c-andrijeski-jcandrijeski/

    Thanks

    #2973038

    supernovia
    Staff

    Ah, sorry, I’d skimmed for a link and missed the June 5 detail earlier; I was looking at titles on the blog page and those are all green on hover.

    I did notice this though:
    https://britishbookwormblog.com/2017/06/16/blitz-giveaway-corruption-of-the-heart-by-jessca-manson-authorjesmanson-xpressotours/

    That’s from the 16th. Do you not see orange links there?

    #2973060

    Yes, but that post was created before it stopped working.

    #2973068

    supernovia
    Staff

    @britishbookworm2014 will you send a link to a post that does not work?

    #2973069
    #2973074

    supernovia
    Staff

    Thanks @britishbookworm2014, and are you using wordpress.com/post or wp-admin for posting, or some other app? I know there were some fairy recent changes to the way wp-admin’s editor handles links, so I’m wondering if that’s your trouble.

    Also, I did notice the difference between the HTML on the links that do change colors and the ones that don’t:

    This won’t work:
    <span style="color: #99cc00;"><a href="#">Link</a> </span>

    But this will work:
    <a href="#"><span style="color: #ff9900;">Link</span></a>

    And this will work:
    <a href="#" style="color: #ff9900;">Link</a>

    Also, you might be happier with a theme that has orange link options built in. Or, like @pavanraheja mentioned, you could use CSS to have control over link colors (and more) for the whole site without having to edit the HTML or manually change link colors each time.

    #2973080

    Thank you for your reply. I use the wp-admin to create new posts and, as I am on the free version, I dont believe I can apply css even if I knew how to.

    I also dont really want to change the theme. Ive spent a very long time getting it how I want to. I don’t understand why WP felt the need to change this.

    #2973087

    supernovia
    Staff

    @britishbookworm2014 I know WordPress.org changed the way wp-admin handles links: https://wordpress.org/news/2017/06/evans/

    But in my tests I can still change the link color: I just changed the text color first, then inserted the link.

    #2973088

    Thanks but I havent been able to do that because I’ve tried that too.

    However if you tell me how you have done it I will give it a go myself

The topic ‘I can't change the text colour in my links’ is closed to new replies.