Woocommerce - delete access to single product page

Hi

I would like to disable the link to the single product page on Woocommerce. I would also like to delete the “read more” button that appears on top of the product images in the shop front. I’ve looked everywhere but can’t find an option to do this in Cornerstone. Could you please point me in the right direction?

Thank you

Hi rukaiyaxo
,

The Woocommerce main shop page is not handled by the Cornerstone and it is auto-generated by the Woocommerce plugin itself. Having said that it is possible to disable the links and hiding them using CSS.

I tried to access your website but it is under the construction. Please provide us with the login information using a secure note to access your website also share with us the exact URL of your shop main page so that we can check the case and give you proper CSS code.

Thank you.

Hi Christopher

Thanks for getting back to me. I’ll add my website details now via SecureNote. I’ve managed to remove the ‘read more’ button using css. Now I just need to disable the links when you hover over the image/title.

Thank you so much!

Hi There,

To disable the link on your shop page, please add this custom CSS under Theme Options > CSS:

.woocommerce li.product a {
    pointer-events: none;
}

For more information about the pointer-events CSS attribute, please take a look at this: https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events.

Hope it helps :slight_smile:

1 Like

Thank you sooo much!

You have no idea how many hours I spent looking for a solution online before asking you guys. Thanks a million times over!

You are most welcome. :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.