Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #879613
    krish213
    Participant

    Hey ,
    How do i make the entire image of the product clickable. I want the user to head to the product by clicking any part of the product image and not just the name in the box.Please help me out with this

    #879625
    krish213
    Participant
    This reply has been marked as private.
    #880020
    Zeshan
    Member

    Hi Krish,

    Thanks for writing in!

    To achieve that, add following JS code under Custom > JavaScript in the Customizer:

    jQuery(document).ready(function($) {
      $('.archive .entry-product').click(function() {
        window.location.href = $(this).find('a').first().attr('href');
      });
    });
    

    Hope this helps. 🙂

    Thank you!

  • <script> jQuery(function($){ $("#no-reply-879613 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>