Support » Plugin: Simple Image Widget » How to: Compatibility with page widgets plugin

  • This is just a note if anyone else wants to use the Simple Image Widget in combination with the “WordPress Page Widgets Plugin” that allows users to customize widgets per page instead of globally.

    To make the Simple Image Widget work on page and post admin sites, edit the file ./includes/class-simple-image-widget-plugin.php in the plugin directory and change line 35:
    add_action( ‘sidebar_admin_setup’, array( $this, ‘enqueue_admin_assets’ ) );

    to:
    add_action( ‘init’, array( $this, ‘enqueue_admin_assets’ ) );

    Just wanted to let you know because it took me some time to figure it out… 🙂

  • The topic ‘How to: Compatibility with page widgets plugin’ is closed to new replies.