Hello, Wix community!
I’m currently working on a website in Wix Studio and have encountered an issue with the product links on my category pages. I need to disable the links so that users cannot click on a product to access its detailed page. However, I haven’t been able to find a solution that works.
What I’ve Tried:
- I’ve attempted to use Velo by Wix to disable the click behavior, with the following code: $w.onReady(function () {
// Disable the link to the product page from the category pages
$w(‘#productPage1’).onClick(() => {
// Prevent the link action
return false;
});
});
However, the code doesn’t seem to prevent the products from being clickable on the category pages. The product links still lead to the product detail page.
My Site Structure:
- The products are displayed on category pages (e.g., under a category like “Caplin”).
- The clickable elements seem to be tied to productPage1 in section4 for the category listing.
- I want to disable the clickable product links in these category views, so they do not redirect to the product detail page.
Desired Outcome:
I want to prevent users from clicking the products in the category grid and accessing their detail pages. I’d like these product listings to be static (non-clickable) in the category view.
Has anyone had experience with this in Wix Studio or Velo? I would appreciate any guidance or suggestions to fix this.
Thanks in advance!