Changing Default Text Selection Color In Your WordPress Site

By default your WP site’s text selection appears blue but you can change this color to whatever you like.
For changing your site’s text selection color; all you need is to open your theme’s style.css file and add the following code:

/* Body
———————————————————— */
::-moz-selection {
background-color: #ffcc00;
color: #fff;
}
::selection {
background-color: #ffcc00;
color: #fff;
}

Remember to change the selection color in the above code from #ffcc00 to your color code.

Leave a Reply

Your email address will not be published. Required fields are marked *