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)?
Propulsion: product image click for details
4 posts from 2 voices-
Posted 7 months ago #
-
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
Posted 7 months ago # -
Fixed.
Thx man
Posted 7 months ago # -
Glad we could help :)
Regards,
Devin
Posted 7 months ago #
Topic Closed
This topic has been closed to new replies.














