This topic has 13 replies, 2 voices, and was last updated 2 years, 10 months ago ago by Rose Tyler
I’am already disabled all categories and all products additional preview type using below css code. but I want to add this feature for selected category. How can do it?
css code – .content-product .product-image-wrapper,
.content-product .product-title {
pointer-events: none;
}
Hello,
Please describe the desired result in more detail, provide URL of the category.
Regards
Now all products showing in small icon on page. can’t open products. (I’m disabled using css code) I want to apply this feature for only selected main product category. ex – Electronic category products can be open using click on the product. but grocery category products can’t shuld be open by click on the product. (only showing product icon only)
Please be kindly answer to me.
Hello,
Sorry for the delay in answering.
Change the code to:
.term-grocery .content-product .product-image-wrapper,
.term-grocery .content-product .product-title {
pointer-events: none;
}
.term-grocery is the class of your grocery category page.
Regards
It’s not working dear. Can you do this using admin login?
As I can see, you added
.term-Grocery .content-product .product-image-wrapper,.term-Grocery .content-product .product-title {
pointer-events: none
}
but it should be
.term-grocery .content-product .product-image-wrapper,
.term-grocery .content-product .product-title {
pointer-events: none;
}
just copy and paste the code,
or provide temporary wp-admin access via the Private Content area.
Regards
Re:How to change products preview type of category wise?
Hello,
Check https://gedaratama.lk/product-category/grocery/ now
https://gyazo.com/7bb293b3e6508546846b27550e0f5900
Regards
It’s working on https://gedaratama.lk/product-category/grocery/ Link only. but at the shop page and products search results it’s not working… why?
Because the code was given for the mentioned category only. Do you want to make products on Shop and in the search results unclickable too?
Regards
Yes! How can do it?
Hello,
I’ve changed the custom CSS code. Clear cache and check now.
Regards
You must be logged in to reply to this topic.Log in/Sign up