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 {
max-height: 440px;
margin: 0 auto;
- width: auto;
+ width: 100%;
border-radius: 10px;
border: 1px solid grey; }
@media only screen and (max-width: 40em) {
// change breadcrumbs 'products' to 'experiences'
$(".post-product-archive").find('span').text('Tours');
- $("[property=name]:contains('Products')").html('Tours');
- // get the difference between the image and its container and subtract half of the difference as margin-top (negative) half of the difference to put it in view
-// if( $(".attachment-shop_single").height() > 440){
-// var height_difference = 440 - $(".attachment-shop_single").height();
-// height_difference = height_difference / 2;
-// height_difference = Math.abs(height_difference) * -1;
-// $(".attachment-shop_single").css("margin-top", height_difference);
-// }
- $("a.product_image_link").fancybox({
+ $("[property=name]:contains('Products')").html('Tours');
+
+ $("a.product_image_link").fancybox({
helpers: {
overlay: { locked: false },
this.title = $(this.element).find('img').attr('alt');
}
});
+
+// $("ul#menu-menu-1").children().find(".menu-item").each( function () {
+// console.debug($(this).attr("id"));
+// });
});
// change breadcrumbs 'products' to 'experiences'
$(".post-product-archive").find('span').text('Tours');
- $("[property=name]:contains('Products')").html('Tours');
- // get the difference between the image and its container and subtract half of the difference as margin-top (negative) half of the difference to put it in view
-// if( $(".attachment-shop_single").height() > 440){
-// var height_difference = 440 - $(".attachment-shop_single").height();
-// height_difference = height_difference / 2;
-// height_difference = Math.abs(height_difference) * -1;
-// $(".attachment-shop_single").css("margin-top", height_difference);
-// }
- $("a.product_image_link").fancybox({
+ $("[property=name]:contains('Products')").html('Tours');
+
+ $("a.product_image_link").fancybox({
helpers: {
overlay: { locked: false },
this.title = $(this.element).find('img').attr('alt');
}
});
+
+// $("ul#menu-menu-1").children().find(".menu-item").each( function () {
+// console.debug($(this).attr("id"));
+// });
});
.woocommerce-main-image.zoom .wp-post-image {
max-height: 440px;
margin: 0 auto;
- width: auto;
+ width: 100%;
border-radius: 10px;
border: 1px solid grey;
}