Skip to content

Instantly share code, notes, and snippets.

Last active December 5, 2021 17:08
What would you like to do?
Add theme color support to a WordPress site
* Add support for a theme colour
function add_theme_colour() {
<meta name="theme-color" content="#BE702B" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#333333" media="(prefers-color-scheme: dark)">
add_action( 'wp_head', 'add_theme_colour' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment