Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Hide "Sold by" button on shop pages, only show on single product?
- This topic has 3 replies, 2 voices, and was last updated 4 years, 9 months ago by Sarmistha Chakraborty.
- AuthorPosts
- February 6, 2020 at 12:36 pm #105701admin-8812Participant
As the title says, can we Hide “Sold by” button on shop pages, only show on single product?
- February 6, 2020 at 5:11 pm #105848Sarmistha ChakrabortyMember
Hello,
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 ); });
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.
- February 7, 2020 at 5:46 am #105984admin-8812Participant
Working perfectly! Thank you so much
- February 7, 2020 at 11:58 am #106048Sarmistha ChakrabortyMember
You are always welcome 🙂
Let me know if there’s anything else we can help you with.
Can we ask for a favor? Would you mind taking a few minutes to review our plugin at https://wordpress.org/support/plugin/wc-multivendor-marketplace/reviews/ and let others know about your 5 Star experience with WCFM Marketplace. Also, follow us on Twitter https://twitter.com/wcfmmp for more exciting news, important updates, and irresistible offers.
- AuthorPosts
- The topic ‘Hide "Sold by" button on shop pages, only show on single product?’ is closed to new replies.