Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stuartduff/46757edfec674ab9134ae45c1c0a09c2 to your computer and use it in GitHub Desktop.
Save stuartduff/46757edfec674ab9134ae45c1c0a09c2 to your computer and use it in GitHub Desktop.
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