Hide Sold by:

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Tagged: ,

Viewing 3 reply threads
  • Author
    Posts
    • #131693
      spektanizer.dev
      Participant

      I use the same theme as Electroz, the website demo you are using.
      In Electroz, the display sold by below the product does not exist. why on my theme there. How do you hide it so it can be the same as in your demo theme?

      if you are confused about what I mean, you can see the picture that I sent. I want to hide what I have marked.

      Attachments:
      You must be logged in to view attached files.
    • #131809

      To remove sold by –

      add_action('init',function(){
      	global $WCFM, $WCFMmp;
      
      	remove_action('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 9 );
      	remove_action('woocommerce_after_shop_loop_item_title', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 50 );
              remove_action('woocommerce_after_shop_loop_item', array( $WCFMmp->frontend, 'wcfmmp_sold_by_product' ), 50 );
      });

      Try this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/

      Thanks.

    • #132392
      spektanizer.dev
      Participant

      thank you for helping me. however, the code above makes the rating bar also hidden. and when I enter the product page. on the vendor tab, vendor names also hide. I just want to hide the name of the vendor or sold by on the shop page. does not include hiding the vendor’s name that is on the product page.

      You can check at https://beraee.com/

    • #132394
      spektanizer.dev
      Participant

      I solved this problem. thank you for helping me.

      apparently I only need to add css to solve my problem.

      I hope you can also help me solve my other problems that I have uploaded on how to change the width of the table
      https://wclovers.com/forums/topic/table-width/

Viewing 3 reply threads
  • You must be logged in to reply to this topic.