0

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

<strong><code></code></strong> 

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' ); ?>
<div><span>hello</span></div>

It outputs

<strong><code><div><span>hello</span></div></code></strong>
1
  • You probably have an unclosed <strong> tag in other file somewhere. Commented Sep 17, 2021 at 8:40

1 Answer 1

0

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 you have read our privacy policy.

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