Skip to content

Instantly share code, notes, and snippets.

@shreyans94
Created January 23, 2018 21:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyans94/39b688682fc9b164d2ab3911688b2e21 to your computer and use it in GitHub Desktop.
Save shreyans94/39b688682fc9b164d2ab3911688b2e21 to your computer and use it in GitHub Desktop.
Move Woocommerce Short Description Below Add to Cart in Product Page
//* change product excerpt and add to cart order in the single product page *//
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 50 );
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 20 );
@Youss6987
Copy link

This one is better :

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 30 ); add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_add_to_cart', 15 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment