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;
}
