Change Highlight Color

  • Author
    Posts
  • #82905

    memeetsoui
    Member
    Original poster

    Hi,

    I’m trying to change the color of highlighted text – somehow it appears yellow.

    Thank you for your help !

    The blog I need help with is: memeetsoui.com

    #83009

    vladolaru
    Theme Author

    Hi,

    That color should be the same as your accent color. We will need to fix this. If you want to change it using custom CSS, you can use this rule:

    ::selection {
    	background: #ffde00;
    	color: black;
    }

    Best regards,
    Vlad
    PixelGrade

    #83024

    memeetsoui
    Member
    Original poster

    Thank you for your reply.
    I’m sorry – I copied and pasted this code to the custom CSS part, I changed the color code to match my orange but it still doesn’t work…

    Did I do something wrong ?

    Thank you for your help

    #83028

    babbardel
    Theme Author

    Hey,

    I just checked your website and the selection it’s orange now — is everything ok?

    Regards

    #83043

    memeetsoui
    Member
    Original poster

    Hello.

    All selections are the right color, except for the when I use the highlight class <span class=”highlight”> in the text.
    Shouldn’t these be the same color as selections ?

    Thank you

    #83063

    vladolaru
    Theme Author

    Hi,

    You are right. I have notified the WP.com guys to take a look.

    Thanks,
    Vlad
    PixelGrade

    #83242

    vladolaru
    Theme Author

    Hi,

    They have changed the text color in the highlight to match the accent color. The background color will need to be dealt with on case by case basis using custom CSS as depending on the accent color chosen contrast issues can arise.

    Vlad,
    PixelGrade

The topic ‘Change Highlight Color’ is closed to new replies.