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

    Hey Tobias,

    Please use following code instead

    add_action('woocommerce_after_single_product_summary', 'avia_add_social_toolbar', 1);
    function avia_add_social_toolbar()
    {
            if( is_singular( 'product' ) ) {
             $content   = '<div class="share_heading">Share this Product</div>';
    	     $content  .= avia_social_share_links_single_post(array(), false, '', false);
    	}
    	echo $content;
    }

    Best regards,
    Yigit

    #1324777

    Hi Yigit,

    thanks a lot. This was enough:

    /*Social Share Buttons on Product Page*/
    add_action('woocommerce_after_single_product_summary', 'avia_add_social_toolbar', 1);
    function avia_add_social_toolbar()
    {
            if( is_singular( 'product' ) ) {
    	     $content  .= avia_social_share_links_single_post(array(), false, '', false);
    	}
    	echo $content;
    }

    Thanks for your help!

    Best regards!

    Tobias

    #1324810

    Hi Tobias,

    You are welcome! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Social Share on Product page – Hook doesn´t work after update’ is closed to new replies.