I'm struggling with the editing of the woocommerce template files. In particular, I'm trying to create a custom cart page and, as guidelines, I've copied the cart.php template file to my template folder. However, any html that I write gets enclosed in


tags. I really don't understand why, does anybody have an idea?

Here's an example:

<?php defined( 'ABSPATH' ) || exit;
do_action( 'woocommerce_before_cart' ); ?>

It outputs

  • You probably have an unclosed <strong> tag in other file somewhere. Sep 17, 2021 at 8:40

1 Answer 1


Cart page is loaded via customizable WordPress Page. Edit your page and check if the "HTML" editor tab content contains any "code" HTML tag.

If you cannot find this tag, you will need to check all actions executed with "woocommerce_before_cart" and "woocommerce_after_cart".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.