Woocommerce购物车页面添加了额外的<p>标签

The cart page for woocommerce is generating a ton of extra p tags. Does anyone have a solution to this or know why this is happening? I've disabled the auto p in wordpress and it still doesn't solve the issue.

I saw this same question was asked on here in January but there was no solution mentioned.
Link: Woocommerce cart adding extra <p> tags

Example:

<form method="post" action="http://toughguppyproductions.com/traceymallett/cart/">
<p></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<table class="shop_table cart" cellspacing="0">
</form>
douchen9855
douchen9855 toolong
接近 7 年之前 回复

1个回答

The only item in the source code between the form and the table tags is this:

<?php do_action( 'woocommerce_before_cart_table' ); ?>

I couldn't find anything in WooCommerce itself which hooked into this action, but you could try searching for the action name woocommerce_before_cart_table through your theme and plugin code and see if you can find what is being added.

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐