Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Hide Sold by:
- This topic has 3 replies, 2 voices, and was last updated 4 years, 6 months ago by spektanizer.dev.
- AuthorPosts
- May 16, 2020 at 11:41 am #131693spektanizer.devParticipant
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. - May 16, 2020 at 5:24 pm #131809Sarmistha ChakrabortyMember
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.
- May 18, 2020 at 7:59 am #132392spektanizer.devParticipant
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/
- May 18, 2020 at 8:12 am #132394spektanizer.devParticipant
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/
- AuthorPosts
- You must be logged in to reply to this topic.