<p> tags added via wpautop() on html output CSS solution

The secure Post Quantum vault for WordPress. Secure file/s sharing
User avatar
axew3
w3all User
w3all User
Posts: 3079
Joined: Fri Jan 22, 2016 5:15 pm
Location: Italy
Contact:

<p> tags added via wpautop() on html output CSS solution

Post by axew3 »

The wpautop() native WordPress function add empty <p> tags on the outputted HTML DOM in certain conditions.
So i have think that into the CSS we can just add something like this to fix the issue

Stay tuned, w3myPQ 3.1.4 is coming viewtopic.php?p=7278#p7278

Code: Select all

/* Fix the wpautop() WP function adding <p> tags on DOM problem */
#wrapw3mypq p {
    margin: 0 !important;
    padding: 0 !important;
}

#wrapw3mypq p:empty {
    display: none !important;
}