Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter natepelzel

    (@natepelzel)

    Sorry, quick edit, I found that having the script queued on pages that didn’t use the color picker caused errors, so I changed the functions.php to this:

    add_action('admin_enqueue_scripts', 'uphill_scripts');
    
    function uphill_scripts() {
    	if(wp_script_is('wp-color-picker', 'enqueued')){
    		wp_enqueue_script( 'uphill-scripts', get_stylesheet_directory_uri() . '/includes/js/custom.js');
    	}
    }
    Thread Starter natepelzel

    (@natepelzel)

    If anybody’s curious, I figured it out. Just tweaked the code a bit. Instead of putting it all in functions.php, I split it out into a js file and queued it up correctly with functions.

    So I made a js file in my child theme that contained:

    jQuery(document).ready(function($){
    	$.wp.wpColorPicker.prototype.options = {
    			hide: true,
    			palettes: ['#36362C', '#5D917D','#A8AD80','#E6D4A7','#A47FD3']
    	};
    });

    and then I queued it up like so in functions.php:

    add_action('admin_enqueue_scripts', 'uphill_scripts');
    
    function uphill_scripts() {
    	wp_enqueue_script( 'uphill-scripts', get_stylesheet_directory_uri() . '/includes/js/custom.js');
    }

    Hope this helps someone in the future.

    Hey, I know it’s been a while since you posted, but if you’re still having the issue, or if anyone else stumbles on the post like I did, here’s the solution I found:

    1. Go to the Plugins > Editor section of your wordpress back-end

    2. Select ‘Simple Instagram Slideshow’ from the drop-down on the top right & click the ‘Select’ button

    3. look for a link on the right that says ‘simple-instagram-slideshow/timthumb.php’ & click it. (It was on the very bottom for me)

    4. In that document, look for the line that says:
    if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', false); // Less secure.
    (It’s fairly close to the top, line 33 if you feel like counting)

    5. change ‘false’ to ‘TRUE’ (without the quotes). So it should read:
    if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', TRUE); // Less secure.

    6. click ‘Update File’

    That should do it!

    Another thing that was causing me issues was that I changed domains, and the domain that you enter when you create the client id on instagram is the only domain that’s allowed to get the images. So if you’ve recently change domains, you’ll want to generate a new client ID

    Thanks for the update, I had the exact same issue and your fix worked for me as well.

    Thread Starter natepelzel

    (@natepelzel)

    brilliant. typo it is. Thanks for that callout

    Thread Starter natepelzel

    (@natepelzel)

    Thanks for the quick reply!

    I did check for caching plugins. I don’t have any installed. Also emptied my browser’s cache to be safe. Still no dice.

    I’m putting the rules in my child theme’s style.css. I have other rules in that same stylesheet that work fine.

    The strange thing is, when I look at the “sources” list in the web inspector, it shows my style.css document, and when I open it from there, it shows all the rules I mentioned above, so the browser is definitely seeing the rules, it just seems like it’s not applying them for some reason.

Viewing 6 replies - 1 through 6 (of 6 total)