Code Monkey home page Code Monkey logo

acf-rgba-color's People

Contributors

navidkashani avatar nicjansma avatar shahroozd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jgraup fuka2000

acf-rgba-color's Issues

Was working with ACF 5.3.7

This plugin was working with ACF 5.3.7, then I made the mistake of updating to ACF 5.3.8. This plugin is now broken. Can not pick a color or even save a manually entered rgba value.

Can't activate the plugin

When I try to activate the plugin, the panel returns the following and the panel gets all messy ๐Ÿ˜•

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'register_fields_rgba_color' not found or invalid function name in C:\wamp\www\barcompany\wp-includes\plugin.php on line 496

Js error in admin area after updating to WP 5.5

Hey,
Get js error after Wordpress was updated to 5.5

Uncaught ReferenceError: wpColorPickerL10n is not defined

and I found fix for it here

if( is_admin() ){
	add_action( 'wp_default_scripts', 'wp_default_custom_scripts' );
	function wp_default_custom_scripts( $scripts ){
		$scripts->add( 'wp-color-picker', "/wp-admin/js/color-picker-alpha.min.js", array( 'iris' ), false, 1 );
		did_action( 'init' ) && $scripts->localize(
			'wp-color-picker',
			'wpColorPickerL10n',
			array(
				'clear'            => __( 'Clear' ),
				'clearAriaLabel'   => __( 'Clear color' ),
				'defaultString'    => __( 'Default' ),
				'defaultAriaLabel' => __( 'Select default color' ),
				'pick'             => __( 'Select Color' ),
				'defaultLabel'     => __( 'Color value' ),
			)
		);
	}
}

This doesn't save values correctly

This plugin doesn't save the values properly. If you select a color, then move away from the admin, then come back to it it doesn't show the saved value.

Any ideas why?

Problem with colour selection

Hi,
Maybe I'm missing some setting somewhere but I'm having trouble inputting and saving colour values (Safari 8.0.2).
Everything works fine creating and displaying the reba field but there are a few issues based on my field settings:

  1. When choosing rgba as the output I can enter a value in the input box next to the colour preview swatch as well as choose and preview the colour. On saving the options the colour swatch resets to the default orange-red colour specified in the plugin with "RGBA(,,,R)" displayed in the input field.
  2. When changing the output to hex and opacity everything works fine in terms of selecting, updating and saving the colour but I am unable to manually input a value in the input field (not selectable).
    I am using the rgba field in an options page but I don't think that could be a problem.
    PS Thx for the plugin!

Doesn't work with repeater field

FYI, this doesn't work inside a repeater field. All color pickers on the page edit the first field's value rather than the value of the field being edited.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.