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
/* Woocommerce regular Sale badge */ | |
.woocommerce span.onsale { | |
left: 0; | |
top: -10; | |
font-weight: 600 !important; | |
min-width: 100px !important; | |
text-align: center; | |
} | |
.woocommerce ul.products li.product .onsale { |
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
Header unset Pragma | |
FileETag None | |
Header unset ETag | |
## EXPIRES CACHING ## | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType image/jpg "access 1 year" | |
ExpiresByType image/jpeg "access 1 year" | |
ExpiresByType image/gif "access 1 year" | |
ExpiresByType image/png "access 1 year" |
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
// Change the add to cart button INTO View Product button | |
// ================================================================================================================= | |
add_filter( 'woocommerce_loop_add_to_cart_link', 'add_product_link' ); | |
function add_product_link( $link ) { | |
global $product; | |
echo '<a href="'.$product->get_permalink( $product->id ).'" class="button">' . __('View Product', 'woocommerce') . '</a>'; | |
} |