Change Colour of Text Highlight

  • Unknown's avatar

    Hi all,

    I’ve recently been customizing a theme to my liking by adding CSS. The theme came with a purple colour scheme.

    I have managed to change all the purple colours to my preferred scheme so far, except for when text is highlighted. I thought I fixed things by adding the following CSS:

    p::-moz-selection { background-color: #00CA12}
    p::selection { background: #00CA12; }

    This did fix most highlighted text. However, there are still some text elements that are showing up in purple – it seems to be when hyperlinks are highlighted, as well as any italicized/bold text. Please see this screenshot for more info:
    https://ibb.co/4FvBm56

    Let me know what CSS I could implement to fix this and get all highlighted text showing up as the green colour! Many thanks

    Cameron

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    What is the address of the site you are referring to? It doesn’t appear this is in reference to http://studioleafinfo.wordpress.com/.

    Please note that these forums are for WordPress.com-hosted sites only. If your site is using the open-source WordPress.org software, we won’t be able to help you out and you’ll want to seek help at these forums:

    https://wordpress.org/support/forums/

  • Unknown's avatar

    It seems im on the wrong site, didnt reliase that! Confusing that there are two wordpresses! Thanks for your help

  • The topic ‘Change Colour of Text Highlight’ is closed to new replies.