Home › Forums › Themes Support › Claue › Hide products price
- This topic has 6 replies, 2 voices, and was last updated 5 years, 1 month ago by leandro.
-
AuthorPosts
-
-
February 23, 2019 at 3:19 am #29150
Hi,
I would like to hide all prices for now as I am running an affiliate site, so I tried to insert the code below in the functions.php file of the child theme but it’s somehow breaking the theme design.
add_filter( ‘woocommerce_get_price_html’, ‘react2wp_woocommerce_hide_product_price’ );
function react2wp_woocommerce_hide_product_price( $price ) {
return ”;
}Could you please help me?
Thank you and have a great day!
-
February 23, 2019 at 10:59 am #29161
Hi Leandro,
Please change code to
add_filter( 'woocommerce_get_price_html', function( $price ) { if ( is_admin() ) return $price; return ''; } );
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 23, 2019 at 2:35 pm #29177
Hi Harry,
Thanks for your quick response!
I changed the code as per your request, but the “Check it out” button is still being displayed over the text as you can see below 🙁
Thanks in advance for your usual support!
-
February 23, 2019 at 4:46 pm #29187
Hi,
Please add below code to Claue > Theme Option > general layout > custom CSS
.product-btn { position: relative; display: inline-block; }
Kind regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 23, 2019 at 5:15 pm #29190
Thank you very much Harry for your support !!!
-
February 24, 2019 at 7:13 am #29200
Could you please help us gove our theme good review and 5 stars rating at https://themeforest.net/downloads.
Thank and have a nice Sunday!
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
February 24, 2019 at 2:43 pm #29215
Sure … thanks Harry !!!
-
-
AuthorPosts
You must be logged in to reply to this topic.