version, '3.0', ">=" ) ) { add_theme_support( 'wc-product-gallery-zoom' ); add_theme_support( 'wc-product-gallery-lightbox' ); add_theme_support( 'wc-product-gallery-slider' ); } } add_action( 'after_setup_theme', 'blossom_wedding_woocommerce_support'); /** * Woocommerce Sidebar */ function blossom_wedding_wc_widgets_init(){ register_sidebar( array( 'name' => esc_html__( 'Shop Sidebar', 'blossom-wedding' ), 'id' => 'shop-sidebar', 'description' => esc_html__( 'Sidebar displaying only in woocommerce pages.', 'blossom-wedding' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'blossom_wedding_wc_widgets_init' ); /** * Before Content * Wraps all WooCommerce content in wrappers which match the theme markup */ function blossom_wedding_wc_wrapper(){ ?>
'; dynamic_sidebar( 'shop-sidebar' ); echo ''; } } add_action( 'blossom_wedding_wo_sidebar', 'blossom_wedding_wc_sidebar_cb' ); /** * Removes the "shop" title on the main shop page */ add_filter( 'woocommerce_show_page_title' , '__return_false' );