',
) );
}
add_action( 'widgets_init', 'blossom_studio_wc_widgets_init' );
/**
* Before Content
* Wraps all WooCommerce content in wrappers which match the theme markup
*/
function blossom_studio_wc_wrapper(){
?>
';
dynamic_sidebar( 'shop-sidebar' );
echo '';
}
}
add_action( 'blossom_studio_wo_sidebar', 'blossom_studio_wc_sidebar_cb' );
/**
* Removes the "shop" title on the main shop page
*/
add_filter( 'woocommerce_show_page_title' , '__return_false' );
if( ! function_exists( 'blossom_studio_wc_cart_count' ) ) :
/**
* Woocommerce Cart Count
*
* @link https://isabelcastillo.com/woocommerce-cart-icon-count-theme-header
*/
function blossom_studio_wc_cart_count(){
$cart_page = get_option( 'woocommerce_cart_page_id' );
$count = WC()->cart->cart_contents_count;
if( $cart_page ){ ?>