Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Hiding Sold by Image
- This topic has 7 replies, 3 voices, and was last updated 5 years, 9 months ago by Jose.
- AuthorPosts
- March 10, 2019 at 1:18 pm #51842JadeGuest
Hi there,
I am trying to hide the vendor image under the product after “Sold by” but unsuccessful (https://ibb.co/rsCjKnb). I was able to hide the label successfully (.wcfmmp_sold_by_label) but it’s not working for the image. Any thoughts why that may be?
I’m using CSS to achieve that:
.wcfmmp_sold_by_logo {
display:none!important;
}Thank you!
- March 10, 2019 at 5:59 pm #51876WCFM ForumMember
Hi,
Please do not use CSS, better add this line to your child theme’s functions.php –
add_filter( 'wcfmmp_is_allow_sold_by_logo', '__return_false' );
Thank You
- March 10, 2019 at 7:46 pm #51888JoseParticipant
Hi,
Can I ask you aditional info here.
I’m glad to know about this filter, but can you tell me how to hide “store:” too ?
I want to show only the name of store.Thank you,
- March 10, 2019 at 8:06 pm #51890JadeGuest
Hi – thank you for the snippet however it is breaking my site – it says syntax error, unexpected $EOF. Also why do you not recommend CSS? Thank you
- March 11, 2019 at 4:11 am #51929WCFM ForumMember
Hi,
Where you have added this code? Please show me screenshot!
Well, CSS does not work for all browsers and device.
More importantly, if you don not logo then why you should load all store logos in archive page? It will increase page size and will take more time to load!Thank You
- March 11, 2019 at 11:44 am #52033JoseParticipant
Hi, In my case I don’t show logo store in every product because I use simple template and it’s too small.
For me will be ok only store name.Can you help me to hide “sold by:” ?
thank you
- March 11, 2019 at 5:20 pm #52096WCFM ForumMember
HI,
Please use this –
add_filter( 'wcfmmp_is_allow_sold_by_label', '__return_false' );
Thank You
- March 11, 2019 at 5:40 pm #52105JoseParticipant
Thank so much !!
Regards,
- AuthorPosts
- The topic ‘Hiding Sold by Image’ is closed to new replies.