FrugalWebGuy is Merging with Michael Mann Web Design under the new Title of I Do Web Work

WooCommerce Snippets: Add Text Before Price

Video Available (Signup to Access - Members Only)

Would you like to add some text in front of the price in WooCommerce? We have a solution for you, which will change the price wording on the main shop page, all the way down to the single product page.

Let's say you want to add "Price: " in front of the actual price. Simply add the following code to your theme's functions.php file (make sure it is between <?php and ?> tags):

/** Returns max price for variably priced products **/
 add_filter('woocommerce_variable_price_html', 'custom_variation_price', 10, 2);

function custom_variation_price( $price, $product ) {
     $price = 'Price: ';
     $price .= woocommerce_price($product->max_variation_price);
     return $price;

This code copied from: