',
'home' => _x( 'Home', 'woocommerce breadcrumb', 'themelia' ),
);
}
add_filter( 'body_class', 'themelia_woocommerce_classes', 6 );
function themelia_woocommerce_classes( $classes ) {
if ( ! function_exists( 'woocommerce_breadcrumb' ) ) {
$classes[] = 'no-wc-breadcrumb';
}
/**
* What is this?!
* Take the blue pill, close this file and forget you saw the following code.
* Or take the red pill, filter storefront_make_me_cute and see how deep the rabbit hole goes...
*/
$cute = apply_filters( 'storefront_make_me_cute', false );
if ( true === $cute ) {
$classes[] = 'woocommerce-columns-' . loop_columns();
}
if ( is_active_sidebar( 'special' ) ) {
$classes[] = 'woocommerce-columns-3';
} else {
$classes[] = 'woocommerce-columns-4';
}
// If our main sidebar doesn't contain widgets, adjust the layout to be full-width.
if ( ! is_active_sidebar( 'special' ) ) {
$classes[] = 'woocommerce-no-sidebar';
}
return $classes;
}
/**
* Add WooCommerce starting wrappers
* @since 1.3.22
*/
add_action('woocommerce_before_main_content', 'themelia_woocommerce_start', 10);
function themelia_woocommerce_start()
{ ?>