Menu Close

WooCommerce & Avada: Social Sharing @ Product Category

default

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 CustomizeWoo.com FREE
 * @author        Rodolfo Melogli
 * @compatible    WooCommerce 4.6
 * @donate $9     https://businessbloomer.com/bloomer-armada/
 */

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

function bbloomer_avada_show_social_sharing() {
   if ( function_exists( 'avada_woocommerce_after_single_product_summary' ) ) {
      avada_woocommerce_after_single_product_summary();
   }
}
View Source
Posted in WooCommerce Tips