Home Forums Themes Support Claue Hide products price

Topic Resolution: Resolved
Viewing 6 reply threads
  • Author
    Posts
    • #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!

    • #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

    • #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!

    • #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

    • #29190

      Thank you very much Harry for your support !!!

    • #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

    • #29215

      Sure … thanks Harry !!!

Viewing 6 reply threads

You must be logged in to reply to this topic.