{"repo":"kallookoo/wp-color-picker-alpha","free":true,"listed":false,"github":"https://github.com/kallookoo/wp-color-picker-alpha","clone":"git clone https://github.com/kallookoo/wp-color-picker-alpha.git","description":"Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker","language":"JavaScript","stars":129,"topics":["wordpress","wp-color-picker","mode-rgba"],"license":"GPL-2.0","category":"self-hosted-apps","readme_excerpt":"WordPress Color Picker Alpha Overwrite [Automattic Iris][1] for enabled Alpha Channel in wpColorPicker Overwrite [WordPress Color Picker][4] for better implementation of overwriting the Iris Usage 1. Download and Copy Script : Download the script and copy it into the js folder of your theme options or plugin. 2. Enqueue Styles and Scripts : Add the following code to enqueue the necessary styles and scripts in your theme or plugin: 3. Add Class and Data Attribute : Add the class .color-picker and the attribute data-alpha-enabled=\"true\" to your input elements. For example: [!IMPORTANT] Only run in input and is defined data alpha in true. In versions prior to 3.0.0, this script started automatically. This behavior has been changed and it no longer starts automatically. [!CAUTION] This is a sample of how it should be included and should be adjusted as needed. [!TIP] Remove unnecessary comments once the functionality is understood. Optional Attributes You can use the following optional attributes to customize the behavior of the color picker: Attribute Description Default ----------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------- ------- data-alpha-reset Disables transparency after selecting a color from the palette. false data-alpha-custom-width Changes the default input width. Specify the desired width in pixels. To disable it, set the value to false or ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kallookoo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kallookoo/wp-color-picker-alpha/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}