/* End Related products */ }
main.woocommerce .main.woo-single-product #content .type-product .images, div.woocommerce .main.woo-single-product #content .type-product .images {
width: 40%; }
+ main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom {
+ display: block;
+ height: 180px;
+ overflow: hidden;
+ border: 1px solid lightgrey;
+ border-radius: 2px; }
+ main.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image, div.woocommerce .main.woo-single-product #content .type-product .images .woocommerce-main-image.zoom .wp-post-image {
+ min-height: 180px;
+ width: 100%; }
@media only screen and (max-width: 40em) {
main.woocommerce .main.woo-single-product #content .type-product .images, div.woocommerce .main.woo-single-product #content .type-product .images {
width: 100%; } }
- main.woocommerce .main.woo-single-product #content .type-product .images img, div.woocommerce .main.woo-single-product #content .type-product .images img {
- border: 1px solid lightgrey;
- border-radius: 2px; }
main.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id, div.woocommerce .main.woo-single-product #content .type-product .images #wpb_wiz_img_id {
height: 180px; }
- main.woocommerce .main.woo-single-product #content .type-product .images .wp-post-image, div.woocommerce .main.woo-single-product #content .type-product .images .wp-post-image {
- height: 180px; }
main.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary, div.woocommerce .main.woo-single-product #content .type-product .summary.entry-summary {
width: 60%; }
@media only screen and (max-width: 40em) {
clear: none;
text-align: center; }
main.woocommerce .main.woo-single-product #content .thumbnails > a, div.woocommerce .main.woo-single-product #content .thumbnails > a {
- padding: 4px; }
+ padding: 0px;
+ height: 35px;
+ overflow: hidden;
+ border: 1px solid lightgrey;
+ border-radius: 2px; }
main.woocommerce .main.woo-single-product #content .thumbnails > a img, div.woocommerce .main.woo-single-product #content .thumbnails > a img {
- height: 35px; }
+ min-height: 35px;
+ min-width: 100%; }
main.woocommerce .main.woo-single-product #content .product.has-default-attributes.has-children > .images, div.woocommerce .main.woo-single-product #content .product.has-default-attributes.has-children > .images {
opacity: 1; }
main.woocommerce .main.woo-single-product #content .entry-summary .product_title, div.woocommerce .main.woo-single-product #content .entry-summary .product_title {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 10 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_price', 20 );
+// Change number of thumbnails per row to 4
+add_filter ( 'woocommerce_product_thumbnails_columns', 'four_thumb_cols' );
+ function four_thumb_cols() {
+ return 4; // .last class applied to every 4th thumbnail
+ }
// Change number or products per row to 3
add_filter('loop_shop_columns', 'loop_columns',999);
function loop_columns() {
- return 3; // 3 products per row
+ return 3; // 3 products per row
}
// Add WooCommerce excerpt to the item title on shop page
add_action('woocommerce_after_shop_loop_item_title','woocommerce_template_single_excerpt', 5);
.main.woo-single-product #content {
.type-product {
.images {
+ .woocommerce-main-image.zoom {
+ display: block;
+ height:180px;
+ overflow: hidden;
+ border: 1px solid lightgrey;
+ border-radius: 2px;
+ }
+ .woocommerce-main-image.zoom .wp-post-image {
+ min-height: 180px;
+ width: 100%;
+ }
width: 40%;
@media #{$small-only} {
width: 100%;
}
- img {
- border: 1px solid lightgrey;
- border-radius: 2px;
- }
#wpb_wiz_img_id {
height: 180px;
}
- .wp-post-image {
- height: 180px;
- }
}
.summary.entry-summary {
}
}
.thumbnails > a {
- padding: 4px;
+ padding: 0px;
+ height: 35px;
+ overflow: hidden;
+ border: 1px solid lightgrey;
+ border-radius: 2px;
img {
- height: 35px;
+ min-height: 35px;
+ min-width: 100%;
}
}
.product.has-default-attributes.has-children {
<li <?php post_class( $classes ); ?>>
<div class="row collapse">
<div class="small-12 large-4 column">
- <?php echo $product->get_image(); ?>
+ <a class="more" href="<?php the_permalink(); ?>">
+ <?php echo $product->get_image(); ?>
+ </a>
</div>
<div class="small-12 large-8 columns">
<div class="row">