Moving price and short description in single product page
-
Hi,
I would like to move the short description on the single product page above the price but I cannot figure out how to do it in functions.phpI used the following code to move short description out from the tabs:
function woocommerce_template_product_description() {
wc_get_template( ‘single-product/tabs/description.php’ );
}
add_action( ‘woocommerce_before_add_to_cart_form’, ‘woocommerce_template_product_description’)However, my problem is that the description is under the price meanwhile I need the description to be above the price. I tried the following code to change priority but it didn’t work:
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 10 );
remove_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 20 );
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_excerpt’, 10 );
add_action( ‘woocommerce_single_product_summary’, ‘woocommerce_template_single_price’, 20 );Is there anyone out there who can help me get this problem solved?
I would like the single product page in the following order:
title
meta tag
description
price
add to cartVisit the following link to see the problem yourselves:
https://www.klockjatten.com/herrklockor/klocka-2Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Moving price and short description in single product page’ is closed to new replies.