by Nick | Jan 15, 2017 | Code
Use this to remove the hardcoded WooCommerce long description title ‘Product description’ <?php //remove long desc title add_filter( 'woocommerce_product_description_heading', 'remove_product_description_heading' ); function...
by Nick | Jan 5, 2017 | Code
Use this in your functions file to add from before variable prices on WooCommerce <?php //add from before price function wc_wc20_variation_price_format( $price, $product ) { // Main Price $prices = array( $product->get_variation_price( 'min', true ),...
by Nick | Jan 1, 2017 | Code
If you need to style category pages depending on category this will add the parent category name as a class into the body meaning that you can then target all child categories with a small amount of css. <?php //add woocommerce parent category name to body function...
by Nick | Jan 1, 2017 | Code
Use this to remove the WooCommerce product meta which including categories and sku’s //remove product meta remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40...
by Nick | Dec 5, 2016 | Code
Use this to remove WooCommerce additional info tab from product page. <?php //remove additional info tab from products add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 ); function woo_remove_product_tabs( $tabs ) { global $product; if(...
by Nick | Nov 18, 2016 | Code
Add Advanced Custom Field below the Woocommerce product title called ‘strapline’ on the product category page. You can then style second-tile class to make it look different. <?php //add cubtitle under product name function nssecondtitle() { ?>...
Recent Comments