Possible now to link entire product image?

HEY HEY!
Is it possible now via css to make a product image showing (in category, related products etc) to link to it’s product page instead of only being able to click the title to get there??? Not seeing it posted here or through google. Would think more would want this. We have had customers saying they have a harder time on their phones with this too. Where as if the entire image linked it would be so simple. So! Thought I check in with you genius’ :grinning:

This is for finally live site at https://jeanneoliver.com/
Thanks!
Noelle!

Hi there,

Thanks for writing in.

The product images are already linking to their product pages, but, covered by hover container. The only way to achieve this is through javascript. Please add this code to your global custom javascript.

jQuery('.type-product .entry-wrap').on('click', function() { window.location = jQuery(this).parent().find('.entry-featured > a').attr('href'); } );

This is just a snippet which you may enhance, but we can’t provide further support. But should work on this specific setup of yours.

Cheers!

1 Like

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