Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Move storefront product sharing icons below the description on the WooCommerce product page.
@media screen and (min-width: 768px) {
.storefront-product-sharing {
padding: 0 0 2.618em 0 !important;
border-top: 0 !important;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
margin-bottom: 2.618em;
}
}
function sd_move_product_sharing() {
if ( class_exists( 'Storefront_Product_Sharing' ) ) {
remove_action( 'woocommerce_after_single_product_summary', array( Storefront_Product_Sharing(), 'sps_product_sharing' ), 5 );
add_action( 'woocommerce_after_single_product_summary', array( Storefront_Product_Sharing(), 'sps_product_sharing' ), 15 );
}
}
add_action( 'init', 'sd_move_product_sharing' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment