Banner for Dominant Color
A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta. Wordpress Tutorial
Noted That:
  • To install correctly this dominant-color.zip .
  • Fisrt Download the dominant-color.zip to your computer
  • Extract/Open dominant-color.zip to Your Computer.
  • Then, Find readme.txt file inside dominant-color.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.
Start the Tips:

Step-1 : Download " dominant-color.zip " to Your Local Computer.

Step-2 : Then, Login to your " yourdomain.com/wp-admin " Dashboard.

Login to Wordpress Dominant Color

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install Dominant Color

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button Dominant Color

Step-5 : Now, Browse " dominant-color.zip " Downloaded plugin from your computer, Where you downloaded " dominant-color.zip " According to Step – 1 Above then, click on " Install Now "

Upload Plugin Dominant Color

Step-6 : Now, Click on " Active Plugin "

Activate Dominant Color

Step-7 : Then, See left Side Menu. " Dominant Color " folder is added on left Side Menu. Now, Click on " Dominant Color " folder.

Noted that: If you do not see " Dominant Color " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about Dominant Color Configurations and Settings or How to work " Dominant Color " in your WordPress site.

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Dominant Color " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Dominant Color
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

The dominant color and color palette is automatically saved on upload and edit to post meta.

You need to then use get_post_meta to retrieve the “dominant_color_hex” or “dominant_color_rgb” meta key. hex returns a string, including the #, rgb returns an array with key 0 as red, 1 as green, and 2 as blue.

Alternatively, you can use the meta keys “color_palette_rgb” and “color_palette_hex” to get an array of 8 colors that feature prominently in the image.


Name