Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created December 13, 2019 14:35
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/befa52d7577bbe59aaa28f683ef52546 to your computer and use it in GitHub Desktop.
Save ibndawood/befa52d7577bbe59aaa28f683ef52546 to your computer and use it in GitHub Desktop.
Electro v2 - Move single product short description / excerpt below add to cart form
add_action( 'init', 'ec_child_move_short_desc_below_add_to_cart', 10 );
function ec_child_move_short_desc_below_add_to_cart() {
remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 20 );
add_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_excerpt', 35 );
}
.single-product .entry-summary>div[itemprop=description],
.single-product .woocommerce-product-details__short-description {
margin-top: 2.5em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment