Select Page

Set a maximum image upload size in WordPress

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...

Move WooCommerce category description up to be full width

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(...

Add from before variable prices on WooCommerce

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 ),...