Support » Plugin: Genesis Simple Sidebars » V2.1.0 not working with woosidebars

  • Resolved djuanes

    (@djuanes)


    Hi:

    I’ve had to downgrade to v2.0.4 because Woosidebars plugin had stopped working when replacing custom sidebar made with Genesis Simple Sidebars.

    any idea?

    • This topic was modified 2 years, 11 months ago by djuanes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nick Cernis

    (@modernnerd)

    Thanks for this report, @djuanes!

    I have passed this on to the StudioPress development team to review for a future update to the plugin.

    If anyone else has updated to 2.1.0 and is also using Woosidebars, you can solve this by either:

    – Downgrading to version 2.0.4 via FTP: https://downloads.wordpress.org/plugin/genesis-simple-sidebars.2.0.4.zip

    – Editing plugins/genesis-simple-sidebars/includes/class-genesis-simple-sidebars-core.php in version 2.1.0 and changing line 27 from this:

    add_filter( 'sidebars_widgets', array( $this, 'sidebars_widgets_filter' ) );

    To this:

    add_filter( 'sidebars_widgets', array( $this, 'sidebars_widgets_filter' ), 11 );

    • This reply was modified 2 years, 11 months ago by Nick Cernis.
    Plugin Support Nick Cernis

    (@modernnerd)

    After speaking with the StudioPress development team:

    If you’re using Genesis Simple Sidebars with another sidebar plugin such as Woo Sidebars, and would like Woo Sidebars to take priority over Simple Sidebars, you can:

    – Update to Simple Sidebars 2.1.0.

    – Add the following to your active theme’s functions.php:

    add_action( 'after_setup_theme', 'custom_change_simple_sidebar_priority' );
    function custom_change_simple_sidebar_priority() {
    	if ( ! class_exists( 'Genesis_Simple_Sidebars' ) ) {
    		return;
    	}
    
    	remove_filter( 'sidebars_widgets', array( Genesis_Simple_Sidebars()->core, 'sidebars_widgets_filter' ) );
    	add_filter( 'sidebars_widgets', array( Genesis_Simple_Sidebars()->core, 'sidebars_widgets_filter' ), 11 );
    }

    A Woo Sidebar set to override a Simple Sidebar will then continue to do so.

    • This reply was modified 2 years, 11 months ago by Nick Cernis.
    • This reply was modified 2 years, 11 months ago by Nick Cernis.

    Thank you
    that worked!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘V2.1.0 not working with woosidebars’ is closed to new replies.