Remove "From: (price)" Label
-
Hello,
I’ve browsed around, and the closest solution I could find was a topic where the user wanted to remove “from” out of their product page.
I want to remove the entire graphic. (and the text)
I am creating the page for an art gallery, and sell mostly “grouped” products. The graphic and label can be a bit misleading, considering a poster print is $20, but original pieces can range from hundreds to thousands of dollars.
I worked with this code, but can only remove the text. (I pasted it in functions.php as instructed by user “bheadrick” from another thread w/ a similar issue.
add_filter('woocommerce_variable_price_html','custom_from',10); add_filter('woocommerce_grouped_price_html','custom_from',10); add_filter('woocommerce_variable_sale_price_html','custom_from',10); function custom_from($price){ $new_from = "Deposit"; $price = str_replace('From',$new_from,$price); return $price; }
This is all I was able to do. It only removed the text (but not the graphic)
add_filter('woocommerce_variable_price_html','custom_from',10); add_filter('woocommerce_grouped_price_html','custom_from',10); add_filter('woocommerce_variable_sale_price_html','custom_from',10); function custom_from($price){ $new_from = "Deposit"; $price = str_replace(); return $price; }
Any help would be awesome,
Thanks!
- The topic ‘Remove "From: (price)" Label’ is closed to new replies.