Created
October 26, 2017 09:37
-
-
Save Shininglow/2bc4f1fe00d86bb0125fde9b355faf3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if( is_product() || ( isset( $swiper ) && $swiper ) ) { | |
$classes[] = 'swiper-slide'; | |
} else if ( is_shop() || is_product_category() || is_product_tag() ) { | |
$sidebar_position = get_theme_mod( 'sidebar_position' ); | |
if ( 'one-left-sidebar' === $sidebar_position || 'one-right-sidebar' === $sidebar_position ) { | |
$classes[] = 'col-xs-12 col-sm-6 col-md-4 col-lg-4 col-xl-4'; | |
} else { | |
$classes[] = 'col-xs-12 col-sm-6 col-md-4 col-lg-4 col-xl-3'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment