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
add_filter( 'woocommerce_sale_flash', 'edit_sale_badge_text' ); | |
function edit_sale_badge_text() { | |
return '<span class="onsale">Buy me!</span>'; | |
} |
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
add_action( 'woocommerce_before_add_to_cart_form', 'category_notice' ); | |
function category_notice() { | |
if (has_term('accessories', 'product_cat')) { // Replace 'accessories' with your category | |
echo '<div class="category_notice"><p>This is a notice.</p></div>'; | |
} | |
} |
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
add_action( 'woocommerce_single_product_summary', 'content_below_price', 15 ); | |
function content_below_price() { | |
echo 'TEST'; | |
} |
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
input, input::before { | |
margin: 0px !important; | |
top: 0px; | |
} | |
label { | |
cursor: pointer; | |
-webkit-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; |
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
body.single-product p.price { | |
color: #FFFFFF; | |
line-height: 80px; /* vertically aligns the price within the star */ | |
font-size: 1.375rem; | |
} | |
#burst-12 { | |
background: #FA7268; | |
width: 80px; | |
height: 80px; | |
text-align: center; |
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
.wpcf7-checkbox .wpcf7-list-item input[type=checkbox], | |
.wpcf7-radio .wpcf7-list-item input[type=radio] { | |
visibility: hidden; | |
margin: 0; | |
width: 0!important; | |
} | |
input[type=checkbox] + .wpcf7-list-item-label, | |
input[type=radio] + .wpcf7-list-item-label { | |
font-size: initial; | |
font-weight: initial; |
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
add_filter('woocommerce_add_to_cart_redirect', 'skip_cart'); | |
function skip_cart() { | |
global $woocommerce; | |
$checkout_url = wc_get_checkout_url(); | |
return $checkout_url; | |
} |
OlderNewer