WPGet.blogspot.com

Methods to Change the Default Textual content Choice Shade in WordPress

You realize what makes your web site’s design stand out? Consideration to particulars. One among these particulars that caught our consideration on Brian Gardner’s (@bgardner) web site was the best way his default textual content choice coloration matched his design coloration scheme fairly than being the default blue coloration. On this article, we'll present you the right way to change the default textual content choice coloration in your WordPress theme.

Change the Default Text Selection Color

Open your fashion.css file and add the next kinds:

::-moz-selection 

::choice 

Don’t neglect to vary the background coloration to match your theme’s coloration scheme.

The ::choice selector is utilized by Chrome, Safari, IE9+, and Opera. Firefox likes to make use of their very own ::-moz-selection. That is the explanation why they're on two separate traces. If you happen to attempt to mix them, it won't work.

For demo, merely choose any of the textual content on this website.

Supply: Brian Gardner

Themes