Title: Remove &#8220;from&#8221;
Last modified: April 2, 2021

---

# Remove “from”

 *  [screamingredeagle](https://wordpress.org/support/users/screamingredeagle/)
 * (@screamingredeagle)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/remove-from-3/)
 * Hello!
 * I would like to remove the “from” price prefix on my single product pages altogether
   and keep it everywhere else the products appear (widgets, shop page, etc)
 * I’ve been scouring the forums but couldn’t find a clear answer. Can you help?
 * Thank you
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-from-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Nicola Mustone](https://wordpress.org/support/users/nicolamustone/)
 * (@nicolamustone)
 * Automattic Happiness Engineer
 * [5 years, 2 months ago](https://wordpress.org/support/topic/remove-from-3/#post-14267287)
 * Hello there, you can find a snippet for this here: [https://gist.github.com/BFTrick/7643587](https://gist.github.com/BFTrick/7643587)
 * The “From” is not included in WooCommerce anymore and it’s only present in very
   old versions of it, or if the theme customizes the string to include it again.
 *  Thread Starter [screamingredeagle](https://wordpress.org/support/users/screamingredeagle/)
 * (@screamingredeagle)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/remove-from-3/#post-14269975)
 * Well I’m using elementor pro and woocommerce. So I’ve already added a snippet
   to remove the price range on variable products…
 * //Hide Price Range for WooCommerce Variable Products
    add_filter( ‘woocommerce_variable_sale_price_html’,‘
   lw_variable_product_price’, 10, 2 ); add_filter( ‘woocommerce_variable_price_html’,‘
   lw_variable_product_price’, 10, 2 );
 * function lw_variable_product_price( $v_price, $v_product ) {
 * // Product Price
    $prod_prices = array( $v_product->get_variation_price( ‘min’,
   true ), $v_product->get_variation_price( ‘max’, true ) ); $prod_price = $prod_prices[
   0]!==$prod_prices[1] ? sprintf(__(‘From: %1$s’, ‘woocommerce’), wc_price( $prod_prices[
   0] ) ) : wc_price( $prod_prices[0] );
 * // Regular Price
    $regular_prices = array( $v_product->get_variation_regular_price(‘
   min’, true ), $v_product->get_variation_regular_price( ‘max’, true ) ); sort(
   $regular_prices ); $regular_price = $regular_prices[0]!==$regular_prices[1] ?
   sprintf(__(‘From: %1$s’,’woocommerce’) , wc_price( $regular_prices[0] ) ) : wc_price(
   $regular_prices[0] );
 * if ( $prod_price !== $regular_price ) {
    $prod_price = ‘‘.$regular_price.$v_product-
   >get_price_suffix() . ‘ ‘ . $prod_price . $v_product->get_price_suffix() . ‘‘;}
   return $prod_price; }
 * This worked to eliminate the price range but then I was stuck with the prefix“
   from”. I added the snippet you shared but then the price was eliminated from 
   everywhere on the site. So I’m assuming there’s a conflict somewhere?
 * Sorry I’m a newb.
 * Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Remove “from”’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [screamingredeagle](https://wordpress.org/support/users/screamingredeagle/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/remove-from-3/#post-14269975)
 * Status: not resolved