Home Plugins acf rgba color picker
ACF RGBA Color Picker logo

ACF RGBA Color Picker

by dreihochzwo on WordPress.org

A RGBA-Color-Picker field for Advanced Custom Fields

(5)
The RGBA Color Picker field settings

The RGBA Color Picker field settings

The RGBA Color Picker is a color picker that supports transparency colors in RGBA-Mode.

Custom color palette

The plugin offers the possibility to customize the color palette according to your own wishes. You can define your own custom color palette with the acf/rgba_color_picker/palette filter. In addition, you can define an individual color palette for each field in the field settings.

New in version 1.2.0

If there are a lot of colors for the color palette, the color fields are getting very tiny. To prevent this, the color fields are now displayed in several rows (with a maximum of 10 colors per row). So it is possible to define a lot of colors for the standard palette.

Furthermore, the color picker is now absolutely positioned and this does not shift other elements of the page every time the color picker is opened.

This plugin works only with the ACF PRO (version 5.5.0 or higher).

Localizations

  • English
  • Deutsch

Custom color palette

Use the acf/rgba_color_picker/palette filter to create your own standard color palette for the color picker. Your custom standard color palette, just like the default color palette, can be overridden in the field settings for each field individually.

Fixed color palette

Put a code like this into your themes functions.php (you can use HEX or RGBA color values and can also mix them):


Dynamic color palette

If you have an options page where you define some standard colors, create an array from this options like this:


This is an example using a repeater field to set the colors; if you store your colors within a string, convert this string into an array.

Hiding color palette

If you dont want to show a color palette set the return value of the filter to false:


Setting the color palette to false will disable and hide the “Color Palette” and “Hide Color Palette” options in the field settings.

Active installations7K+
Weekly downloads
171-11.40%
Version1.2.3
Last updated12/22/2024
WordPress version4.7
Tested up to6.7.2
Tags
acfacfprocolorcolor pickerrgba