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
<?php | |
/** | |
* Disable the add to cart action | |
*/ | |
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart', 10 ); | |
/** | |
* Redirect to product page |
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
<?php | |
/** | |
* Cart Page | |
* | |
* This template can be overridden by copying it to yourtheme/woocommerce/cart/cart.php. | |
* | |
* HOWEVER, on occasion WooCommerce will need to update template files and you | |
* (the theme developer) will need to copy the new files to your theme to | |
* maintain compatibility. We try to do this as little as possible, but it does | |
* happen. When this occurs the version of the template file will be bumped and |
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
/** Increase image size in lightbox **/ | |
.dialog-type-lightbox .dialog-widget-content{ | |
width: 100%; | |
} |
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
<?php | |
/** | |
*Snippet to add show ACF field content in child product | |
*/ | |
function acf_filter_field($title, $child_product) { | |
return sprintf('<h4>%s</h4><p>%s</p>', | |
$title, | |
get_field('alcool', $child_product->get_ID()) /** Alcohol is the ACF field name **/ | |
); |
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
.pewc-preset-style .pewc-radio-images-wrapper, .pewc-preset-style .pewc-checkboxes-images-wrapper { | |
-webkit-justify-content: flex-start; | |
justify-content: flex-start; | |
} | |
.pewc-radio-images-wrapper.pewc-columns-3 .pewc-radio-image-wrapper{ | |
margin: 1%; | |
} | |
.pewc-radio-images-wrapper.pewc-columns-2 .pewc-radio-image-wrapper{ |
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
@media (max-width: 600px) { | |
.pewc-preset-style .pewc-radio-image-wrapper, .pewc-preset-style .pewc-checkbox-image-wrapper{ | |
border: none; | |
} | |
.pewc-preset-style .pewc-radio-image-wrapper.checked, .pewc-preset-style .pewc-radio-image-wrapper:not(.pewc-checkbox-disabled):hover, .pewc-preset-style .pewc-checkbox-image-wrapper.checked, .pewc-preset-style .child-product-wrapper:not(.pewc-column-wrapper) .pewc-checkbox-image-wrapper:not(.pewc-checkbox-disabled):hover{ | |
border: none; | |
} | |
.pewc-radio-image-wrapper label img, .pewc-checkbox-image-wrapper label img { | |
border: 3px solid #EEE; | |
min-height: 200px; |
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
@media only screen and (min-width: 600px) { | |
.pewc-radio-image-desc { | |
font-weight: 400; | |
font-size: 11px; | |
overflow-wrap: break-word; | |
line-height: 13px; | |
} | |
} | |
.pewc-preset-style .pewc-radio-image-wrapper, .pewc-preset-style .pewc-checkbox-image-wrapper { | |
padding: 0.1em; |
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
/** Two columns for radio buttons on desktop view **/ | |
@media only screen and (min-width: 600px) { | |
.pewc_group_7974_7987 ul.pewc-checkbox-group-wrapper{ | |
display: grid; | |
grid-auto-columns: 200px 200px; | |
grid-template-rows: repeat(8, 30px); | |
gap: 10px; | |
grid-auto-flow: column; | |
} |
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
/** Tabs background color **/ | |
.pewc-preset-style .pewc-tabs-wrapper .pewc-tab { | |
background: #fff; | |
} |
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
<?php | |
/** | |
* Show custom attributes in child product | |
*/ | |
/** | |
*Snippet to add show ACF field content in child product | |
*/ |
OlderNewer