This code creates a color picker meta box which loads on the Edit Post screen.
You can use the color picker to style any element on any single post like you see in the following demo video.
Demo Video
Shows how the color picker meta box can be added to the Edit post admin screen using screen options and used to style any element on any single post.
Tested using the Genesis Sample child theme by StudioPress however will work in any WordPress or Genesis child theme.
Code Installation
There’s only 1 step. Copy & paste the PHP code from the functions file in the download folder to the end of your child themes functions.php file and check the screen options to show the meta box on Edit Post screens.
Register or login to access the code in the download folder :
Related Code Snippets
- Code Color Picker On Taxonomy Edit Screen To Style Post Meta On All Page Types Including Posts Page
- Inline Style Post Category Links Using Color Picker
- Add Color Picker To Edit Post Screen To Style Specific Single Post Elements
- Add Color Picker To Edit Category Screen To Set Color For Posts In Each Category
Was This Tutorial Helpful?