Created
January 23, 2018 21:39
-
-
Save shreyans94/39b688682fc9b164d2ab3911688b2e21 to your computer and use it in GitHub Desktop.
Move Woocommerce Short Description Below Add to Cart in Product Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//* 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 ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 );