This code adds a color picker to the Edit Category screen which enables you to change colors for different elements on single posts in each category.
This code has been written in response to the following question from a registered user :
“I was hoping to be able to use the color picker and set a color per category that would populate across the site within the dashboard, so my clients could set the colors.”
Let’s take a look at what this solution gives you in the demo video.
Shows how you can use the color picker on every Edit Category screen to change the colors of different elements on single posts in that category. In this example, the color picker sets the colors for the entry title & entry meta however you can use it to set colors of any/all single post elements.
There’s 2 steps :
# Step 1 – From the download folder, copy & paste the PHP code to the end of your child themes functions.php file.
Register or login to access the code in the download folder.
- Code To Add Color Picker To Meta Box On Edit Post Screens
- Add Color Picker To Edit Post Screen To Style Specific Single Post Elements