How to place a color picker field into my plugin admin tab
How to place a color picker field into my plugin admin tab
How to place a color picker field into my plugin admin tab
You are setting the color of the paragraph the link resides in, but in style.css (that is part of the theme you are using) there is a rule targeting all <a> elements that is more specific targeting and is overriding the color you are trying to set at the <p> level. You can try customizing … Read more
color value of wpColorPicker
This is hacky but gets the job done. $(‘#element .wp-picker-clear’).trigger(‘click’);
Working code to set color customizer in wordpress theme settings: function color_customizer($wp_customize){ $wp_customize->add_section( ‘theme_colors_settings’, array( ‘title’ => __( ‘Theme Colors Settings’, ‘themeslug’ ), ‘priority’ => 5, ) ); $theme_colors = array(); // Navigation Background Color $theme_colors[] = array( ‘slug’=>’color_section_name’, ‘default’ => ‘#000000’, ‘label’ => __(‘Color Section Title’, ‘themeslug’) ); foreach( $theme_colors as $color ) { … Read more
I found what I was looking for here: https://stackoverflow.com/questions/30732181/add-new-row-of-color-palettes-in-iris-color-picker I have several palettes on one page and I added some rows to the code when having more then one palette in one page …setup options… $(‘.my-color-field’).iris(options); $(‘.iris-palette’).css({‘height’:’20px’,’width’:’20px’, ‘margin-left’:”,’margin-right’:’3px’,’margin-top’:’3px’}); $(‘.iris-strip’).css(‘height’,’140px’); //Nr of palette-areas? This is need if you have several //palettes on one page (else the … Read more