• Home
  • Blog
  • Showcase
  • Setup Docs
    • Sunshine Help
    • Flex Help
  • Support
    • Support Area
    • Contact us
    • Feedback
  • Connect
    • Newsletter
    • Twitter
    • Facebook
  • My Account
  • Flex
  • Sunshine
Support : Simple Pro Themes

Support : Simple Pro Themes

Simple Pro Banner – No Background Colour Picker

If you have purchased a product, please enter the email address that you used to register at time of purchase.
Log In
Lost Password

Create an Account
  • Your username must be unique, and cannot be changed later.
  • We use your email address to email you a secure password and verify your account.

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)
  • Author
    Posts
  • June 16, 2016 at 3:41 pm #1057
    calliaweb
    Participant

    Hi

    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 #1058
    Chinmoy Paul
    Moderator

    Open 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 #1059
    calliaweb
    Participant

    Wow. Yes that fixed it. Thank you.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Log In

Copyright © 2022 · Simple PRO Themes for Genesis Framework · About · FAQs · Contact · Affiliates