Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Shop page, change class
Tagged: shop page, sold by css issue
- This topic has 2 replies, 2 voices, and was last updated 5 years, 4 months ago by Orb10-1.
- AuthorPosts
- July 29, 2019 at 11:33 am #74350Orb10-1Participant
Hi,
there’s a problem I’m not able to fix.
On shop page, I used [wtcpl-product-cat] and I removed the default woocommerce shop page php.
Till there no issue.
However the issue comes with the “vendor img and name” for every product appearing on shop page: they don’t have a unique class for that hook.
The classes used are: wcfmmp_sold_by_wrapper (div, span, a)…these are the SAME used on vendor/product page. Thus, there’s a css conflict because I can’t edit the vendor information on shop page products without affecting it on the product page (product summary).I’d like to clone the php for the shop page products and add a specified class to use only on shop page (like wcfmmp_sold_by_wrapper-2), but my biggest issue is here: after days I didn’t find which php file is called and from where.
Thanks
- August 3, 2019 at 5:02 am #74912WCFM ForumMember
Hi,
Well, in that case you have write CSS with body class reference.
Shop page body has this class – post-type-archive-product
But single product page does not have this.So, write your CSS like this –
.post-type-archive-product .wcfmmp_sold_by_wrapper {}
Thank You
- August 8, 2019 at 3:55 pm #75785Orb10-1Participant
Yes, it’s a helpful trick, but that body class is not specific to the shop page.
However I’ve found another way to set up the shop correctly.
Thanks
- AuthorPosts
- The topic ‘Shop page, change class’ is closed to new replies.