CLENT CRUMLEY
  • Design
  • Development
  • Strategy
  • Contact
BarkBox.com

Home // Snippets // Remove empty paragraphs

  • April 27th
  • 2015

Remove empty paragraphs

Wordpress inserts its own

tags around elements entered into the code editor. This is fine until it causes issues. There are a number of other workarounds- but this one is very unique and may be just the snippet you’re looking for. CSS Option:
p:empty {
    display: none;
}
jQuery Version:
$(document).ready(function() {
	$('p:empty').remove();
});

Posted in Wordpress by clent

Posted in Snippets by clent

~ ★ ~

Ready to get started?

I'm currently creating opportunity in Central Texas & would love the chance to be a part of your next web endeavor.

Fill out a short questionnaire and let's make some magic happen.

Start Project »
  • Design
  • Development
  • Strategy
  • Contact