Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17610

    On the Store page can I set it so clicking on any part of the product image will go to specific product page (in addition to just clicking on ‘Show Details’ pop up text)?

    #96140

    Hey ATX,

    You’ll need to edit a function in one of the theme files. Open up config-woocommerce>config.php and search for:

    echo get_the_post_thumbnail( get_the_ID(), 'shop_catalog' );
    echo $link;
    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";
    if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    Replace that with:

    echo "<a href='".get_permalink($post->ID)."'>".get_the_post_thumbnail( get_the_ID(), 'shop_catalog' )."</a>";
    echo $link;
    echo "<a class='button show_details_button $extraClass' href='".get_permalink($post->ID)."'>".__('Show Details','avia_framework')."</a>";
    if(!empty($rating)) echo "<span class='rating_container'>".$rating."</span>";

    Now make sure to save the file back onto your server so that it replaces the old one and that should do it.

    Regards,

    Devin

    #96141

    Fixed.

    Thx man

    #96142

    Glad we could help :)

    Regards,

    Devin

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Propulsion: product image click for details’ is closed to new replies.