Forum Moderators: buckworks

Message Too Old, No Replies

How to remove image 'link' from product image?

         

Gemini23

2:50 pm on Mar 23, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



On single product pages, when the image is clicked, the image then opens up as a full-screen image - I would like to remove this 'hyperlink' on single product pages.

Anyone?

lammert

3:11 pm on Mar 23, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Wich ecommerce platform are you talking about?

Gemini23

3:23 pm on Mar 23, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry... Woocommerce

lammert

3:49 pm on Mar 23, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



That is not possible directly with some settings in the admin menu. You have to change the theme, or add hooks in functions.php to override the default link generation code.

Gemini23

4:05 pm on Mar 23, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am wondering if it can be done via css or in one of the files?