Takayuki Miyoshi on "[Plugin: Contact Form 7] P tags removed when enveloping DIV tags"

ساخت وبلاگ

Jason Wong
Member
Posted 9 hours ago #

With wpcf7_autop defaulted true, I noticed that the P tags are automatically removed when they envelop DIV tags. For example, the following code

<p>
<div class="title">Name: <span>*</span></div>
<div class="field">[text* your-name 30/]</div>
</p>

turns to:

<div class="title">Name: <span>*</span></div>
<div class="field">[text* your-name 30/]</div>

I wish to have the P tags remain with the DIV tags.

Please help! Thank you.

https://wordpress.org/plugins/contact-form-7/

You can't wrap div elements with a p element because div isn't a phrasing content. See the W3C spec.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 407 تاريخ : يکشنبه 31 مرداد 1395 ساعت: 6:14

خبرنامه