Skip to main content

Well I actually figured it out. Leaving the code in case someones need it later:

// Add sidebar for shop loop header function my_custom_before_shop_loop_sidebar() {

dynamic_sidebar('shop-loop-header-sidebar');

}

add_action( 'woocommerce_before_shop_loop', 'my_custom_before_shop_loop_sidebar', 2);

// Add sidebar for shop loop header function my_custom_before_shop_loop_sidebar() { dynamic_sidebar('shop-loop-header-sidebar'); } add_action( 'woocommerce_before_shop_loop', 'my_custom_before_shop_loop_sidebar', 2); 

Well I actually figured it out. Leaving the code in case someones need it later:

// Add sidebar for shop loop header function my_custom_before_shop_loop_sidebar() {

dynamic_sidebar('shop-loop-header-sidebar');

}

add_action( 'woocommerce_before_shop_loop', 'my_custom_before_shop_loop_sidebar', 2);

Well I actually figured it out. Leaving the code in case someones need it later:

// Add sidebar for shop loop header function my_custom_before_shop_loop_sidebar() { dynamic_sidebar('shop-loop-header-sidebar'); } add_action( 'woocommerce_before_shop_loop', 'my_custom_before_shop_loop_sidebar', 2); 
Source Link
Gman
  • 183
  • 2
  • 11

Well I actually figured it out. Leaving the code in case someones need it later:

// Add sidebar for shop loop header function my_custom_before_shop_loop_sidebar() {

dynamic_sidebar('shop-loop-header-sidebar');

}

add_action( 'woocommerce_before_shop_loop', 'my_custom_before_shop_loop_sidebar', 2);