This file contains hidden or 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-has-hex .pewc-radio-images-wrapper img { | |
visibility: hidden; | |
height: 0; | |
display: none; | |
} | |
.pewc-hex { | |
height: 30px; | |
width: 30px; | |
} |
This file contains hidden or 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
.cropper-view-box { | |
border-radius: 50%; | |
} | |
.cropper-face { | |
background-color:inherit !important; | |
} |
This file contains hidden or 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 | |
function test_page_count_method( $method ) { | |
// return 'imagick'; // Use this if you have the Imagick PHP extension installed | |
return 'preg_match_all'; | |
} | |
add_filter( 'wcpauau_page_count_method', 'test_page_count_method' ); |
This file contains hidden or 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 | |
add_action( 'wp_footer', function() { | |
?> | |
<style> | |
.pewc-has-extra-fields .pewc-item-products-radio-list[data-product-quantity-select="1"] .pewc-radio-wrapper .pewc-radio-list-label-wrapper { | |
display: none !important; | |
} | |
.pewc-has-extra-fields .pewc-item-products-radio-list[data-product-quantity-select="1"] .pewc-child-quantity-field-select { | |
width: 50px !important; | |
margin-left: auto; |
This file contains hidden or 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 | |
add_filter( 'wcmo_disable_product_data_tab', '__return_true' ); |
This file contains hidden or 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
form.cart.variations_form .woocommerce-variation-add-to-cart { | |
display: block !important; | |
} | |
ul.wcdpp-deposit-options-wrapper { | |
list-style: none !important; | |
margin-left: 0 !important; | |
margin-bottom: 2em; | |
padding-left: 0; | |
} | |
ul.wcdpp-deposit-options-wrapper h3 { |
This file contains hidden or 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 | |
/** | |
* Hide products from specific category on shop page | |
* Update line 13 with category slugs to hide | |
*/ | |
function pr_product_query_tax_query( $tax_query, $query ) { | |
if( ! is_shop() ) return $tax_query; | |
$tax_query[] = array( |
This file contains hidden or 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 | |
/** | |
* Hide product category from main query | |
* Update line 17 with the slug of the category to be hidden | |
*/ | |
function pr_product_query( $q ) { | |
if ( ! $q->is_main_query() ) return; | |
if ( ! $q->is_post_type_archive() ) return; |
This file contains hidden or 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
.ptuwc_table_container table thead tr th, .ptuwc_table_container table tbody tr td { | |
padding-top: 16px; | |
padding-bottom: 16px; | |
} |
This file contains hidden or 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 | |
/** | |
* Filter product if user not logged in | |
*/ | |
function pr_demo_is_purchasable( $purchasable, $product ) { | |
if( !is_user_logged_in() ) { | |
return false; | |
} | |
return $purchasable; | |
} |