Skip to content

Instantly share code, notes, and snippets.

noellesteegs

Block or report user

Report or block noellesteegs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@noellesteegs
noellesteegs / styled-checkboxes.css
Created Sep 13, 2019
Replace default HTML checkboxes with Font Awesome icons
View styled-checkboxes.css
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;
@noellesteegs
noellesteegs / content-below-product-price.php
Created Aug 26, 2019
Add content below price @ WooCommerce single product
View content-below-product-price.php
add_action( 'woocommerce_single_product_summary', 'content_below_price', 15 );
function content_below_price() {
echo 'TEST';
}
@noellesteegs
noellesteegs / single-product-category-notice.php
Last active Aug 26, 2019
Add text above cart form @ WooCommerce single product if in particular category
View single-product-category-notice.php
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>';
}
}
@noellesteegs
noellesteegs / sale-badge-text.php
Last active Aug 23, 2019
Change text of WooCommerce sale badge
View sale-badge-text.php
add_filter( 'woocommerce_sale_flash', 'edit_sale_badge_text' );
function edit_sale_badge_text() {
return '<span class="onsale">Buy me!</span>';
}
@noellesteegs
noellesteegs / storefront-footer-text.php
Last active Aug 26, 2019
Add test text @ Storefront footer
View storefront-footer-text.php
You can’t perform that action at this time.