Support › Forums › Sunshine Pro Theme › Simple Pro Banner – No Background Colour Picker
- This topic has 2 replies, 2 voices, and was last updated 6 years ago by
calliaweb.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
June 16, 2016 at 3:41 pm #1057
calliaweb
ParticipantHi
On one of the sites that I have the Sunshine theme installed there is no button to pick a background colour on the Simple Pro Banner widget. (It works absolutely fine on another site on a different host). This is when editing the widgets from Appearance > Widgets
I’ve disabled all plugins but it is still the same. And I’m not sure what else to do to troubleshoot it.
I can edit the background colour of the Simple Pro Banner widget if I use the customiser, so I’ve now been able to do what I need, but thought I would let you know.
Thanks
June 16, 2016 at 3:49 pm #1058Chinmoy Paul
ModeratorOpen the lib/widgets/widgets.php php file and replace the following codes
add_action('admin_enqueue_scripts', 'widget_scripts' ); add_action('admin_enqueue_styles', 'widget_styles' ); function widget_scripts( $hook ) { if( 'widgets.php' != $hook ) return; wp_register_script( 'color-picker', get_stylesheet_directory_uri() . '/js/color.picker.js', array( 'jquery' ) ); wp_register_script( 'banner-uploader', get_stylesheet_directory_uri() . '/js/media_uploader.js', array( 'media-upload', 'thickbox' ) ); wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_script( 'underscore' ); wp_enqueue_script( 'media-upload' ); wp_enqueue_script( 'thickbox' ); wp_enqueue_script( 'color-picker' ); wp_enqueue_script( 'banner-uploader' ); } function widget_styles( $hook ) { if( 'widgets.php' != $hook ) return; wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_style('thickbox'); }
WITH
add_action('admin_enqueue_scripts', 'widget_scripts' ); function widget_scripts( $hook ) { if( 'widgets.php' != $hook ) return; wp_enqueue_style( 'wp-color-picker' ); wp_enqueue_style('thickbox'); wp_register_script( 'color-picker', get_stylesheet_directory_uri() . '/js/color.picker.js', array( 'jquery' ) ); wp_register_script( 'banner-uploader', get_stylesheet_directory_uri() . '/js/media_uploader.js', array( 'media-upload', 'thickbox' ) ); wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_script( 'underscore' ); wp_enqueue_script( 'media-upload' ); wp_enqueue_script( 'thickbox' ); wp_enqueue_script( 'color-picker' ); wp_enqueue_script( 'banner-uploader' ); }
June 16, 2016 at 4:07 pm #1059calliaweb
ParticipantWow. Yes that fixed it. Thank you.
-
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.