by Nick | Jan 19, 2017 | Code
This can be used to set a maximum image upload size in WordPress, this helps to stop clients uploading large image files. This example is 1.5mb <?php //limit image file size to 1.5mb function whero_limit_image_size($file) { // Calculate the image size in KB...
by Nick | Jan 17, 2017 | Code
This will move the WooCommerce category description up to be full width instead of in the right hand column. <?php //move cat description up the page remove_action( 'woocommerce_archive_description', 'woocommerce_taxonomy_archive_description', 10 ); add_action(...
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...
Recent Comments