Created
December 13, 2019 14:35
-
-
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
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
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 ); | |
} |
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
.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