Home » WooCommerce: Move Social Sharing @ Single Product Page

WooCommerce: Move Social Sharing @ Single Product Page

by Tutor Aspire

JetPack sharing (and other social media sharing plugins) allow you to add social media sharing to your woocommerce products. However, the sharing buttons will only show at the bottom of the “Long description”.

How to move that up a bit, say between the short description and the product tabs? Simply add this function to your functions.php file editor:

WooCommerce: How to Move Jetpack on the Single Product Page
WooCommerce: How to Move Jetpack on the Single Product Page
/**
 * @snippet       WooCommerce Move JetPack Social Sharing
 * @how-to        Get tutoraspire.com FREE
 * @sourcecode    https://tutoraspire.com/?p=321
 * @author        Tutor Aspire
 * @compatible    WooCommerce 3.5.4
 * @donate $9     https://tutoraspire.com
 */

// Remove them from under short description
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_sharing', 50 );

// Readd above product tabs
add_action( 'woocommerce_after_single_product_summary' , 'woocommerce_template_single_sharing', 5 );

You may also like