Remove P tags

Use CSS to Remove Auto-Generated Empty <p> Tags in WordPress

I can’t complain about the great, convenient feature of auto-generating <p> tags in WordPress, but sometimes it’s pretty annoying because it breaks lines unintentionally. Here’s how to hide only the empty <p> tags with one simple CSS line.

CSS: Hide/Remove Empty <p> Tags

p:empty {
  display: none;
}

Leave a Comment

Your email address will not be published. Required fields are marked *