Answer the question
In order to leave comments, you need to log in
Duplicate content in the product description tab on woocommerce - why?
Hello! There is an online store on wordpress + woocommerce. (woo latest version)
I have my own theme (tested with absolutely clean, where only styles.css and index.php and single-product.php files copied from plugin templates) and disabled plugins.
Faced such a problem: on the product page, for some reason, a duplicate of the content of the entire product is displayed in the description tab.
What could be causing this and how can it be fixed?
Answer the question
In order to leave comments, you need to log in
Found the answer here. You need to write the following instruction
in functions.php :
function mytheme_add_woocommerce_support() {
add_theme_support( 'woocommerce' );
}
add_action( 'after_setup_theme', 'mytheme_add_woocommerce_support' );
single.php
will take precedence over the single-product.php
ones in the theme subfolder Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question