Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created November 19, 2019 06:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/1c46037c2c1940e6fe09e0940eb5a157 to your computer and use it in GitHub Desktop.
Save ibndawood/1c46037c2c1940e6fe09e0940eb5a157 to your computer and use it in GitHub Desktop.
Electro v2 - Move single product description/excerpt above add to cart
add_action( 'init', 'ec_child_move_short_desc_below_price', 10 );
function ec_child_move_short_desc_below_price() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 28 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment