|
| A WordPress plugin to automatically save the dominant color and a color palette for an attachment image into post_meta. Wordpress Tutorial |
Noted That:
|
Start the Tips:1. First Download " dominant-color.zip " Plugin to your Local Computer. (Click Download) 2. Then, Login to your " yourdomain.com/wp-admin " Dashboard. 3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard. 4. Now, Click on "Upload Plugin" button.
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" 6. Now, Click on " Active Plugin" 7. Then, See left sidemenu. " Dominant Color " folder is added on left sidemenu. Now, Click on " Dominant Color " folder. Noted that: If you do not see " Dominant Color " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ". 8. Now you configure yourself oR Watch video tutorial below about Dominant Color Configurtions and Settings or How to work " Dominant Color " in your WordPress site. oR After Activated Plugin According to Step-6 then,
|
| 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. |
| color , automatically , save , dominant , palette , attachment , image , into , postmeta , tutorial , |
| Name |
|---|
Read Article https://develop.horje.com/learn/1434/reference