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

This site uses Akismet to reduce spam. Learn how your comment data is processed.