Home » WooCommerce & Avada: Social Sharing @ Product Category

WooCommerce & Avada: Social Sharing @ Product Category

by Tutor Aspire

A client wanted to add the social sharing icons provided with Avada theme on the shop loop and product shortcodes as well. The social sharing icons are visible on the single product page only, so here’s how you do it!

Avada: single product page social sharing WooCommerce
Avada: single product page social sharing WooCommerce

PHP Snippet: Add Social Sharing to WooCommerce Product Loop Items in Avada Theme

/**
 * @snippet       WooCommerce Avada Loop Item Sharing
 * @how-to        Get tutoraspire.com FREE
 * @author        Tutor Aspire
 * @compatible    WooCommerce 4.6
 * @donate $9     https://www.tutoraspire.com
 */

add_action( 'woocommerce_after_shop_loop_item', 'tutoraspire_avada_show_social_sharing', 20 );

function tutoraspire_avada_show_social_sharing() {
   if ( function_exists( 'avada_woocommerce_after_single_product_summary' ) ) {
      avada_woocommerce_after_single_product_summary();
   }
}

You may also like