Skip to content

Change highlight color in Elementor & WordPress – Selected text color

Reading Time: < 1 minute
Change highlight color in Elementor & WordPress

This is sooo easy, here’s how to change highlight color in Elementor & WordPress.

You can change it with either using a plugin, or adding a simple line of code to your Additional CSS.

Change selected text color & background color in WordPress code:

Go to Appearance -> Customize -> Additional CSS and add the following code, of course change the background-color: #e91d14; to the color you wish for the background and the #ffffff to the color you wish the text to be while highlighted.

::-moz-selection {
    background-color: #e91d14;
    color: #fff;
}
  
::selection {
    background-color: #e91d14;
    color: #fff;
}

I recommend changing it with the code because you can change the text color in the highlighted mode as well, whereas with the plugin you can only change the background color.

Change highlighted text background color with code

Change highlight color in WordPress with a plugin:

  1. Install & activate Custom Highlight Color plugin
  2. Go to Appearance -> Customize -> Colors
  3. Change the color to the color you wish
  4. Done. Now highlight any text, and it should be in the color you chose in Step 3
Change highlighted text background color with plugin

Leave a Reply

Subscribe, I never spam

Agapi
stepanyanagapi229
Read More
Although I don’t have a restaurant the urge to read it was too strong and didn’t disappoint. I guess if you have a restaurant this is a must-read. Thanks a lot.
Diogo Barros
Diogo Barros
Read More
Thank you !
J
J
Read More
i've been searching everywhere for this solution, you're the first person who gave a simple solution. Ty
Farah I
Farah I
Read More
Thanks. I already have cloudflare and its still slow.. was thinking of how to remove unused js... but found your video instead
BLACK ANT
BLACK ANT
Read More
makes complete sense bro. Thank you
 Tobee Panyasith
Tobee Panyasith
Read More
Thank you for this great video

Table of Content

Subscribe to my mailing list

I never spam