Adding Custom Color Palette on Customizer (WordPress)

Updated on:
WordPress

I found a quick tutorial from the guys over at GeneratePress that was helpful in having your custom palette hooked in automatically

If you’re the kind of person who enjoys brand guidelines like me, having a custom color palette on WordPress default Customizer is pretty freaking sweet.

How to Add Your Custom Color Palette on WordPress (with CODE)

add_filter( 'generate_default_color_palettes', 'tu_custom_color_palettes' );
function tu_custom_color_palettes( $palettes ) {
	$palettes = array(
		'#000000',
		'#FFFFFF',
		'#F1C40F',
		'#E74C3C',
		'#1ABC9C',
		'#1e72bd',
		'#8E44AD',
		'#00CC77',
	);
	
	return $palettes;
}

Video Tutorial

Here’s the Youtube tutorial that I am referring to. It has like 1k+ views at the time of this writing and I thought, wow, that’s pretty underrated for a superb easy tutorial for GeneratePress and general WordPress users.

Simple as that. Lots of thanks to Mike Oliver/GeneratePress!

Leave a Comment

Welcome to Milo's blog, where I share my own, mostly questionable, takes on marketing, startup, and life on this blog.

Resources

About

Blog

Contact

Copyright © 2022 Milo Lam