190 posts
  • Has been part of the Envato Community for over 2 years
  • Has sold $1+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

did the community every come up with a final solution to the issue WordPress has with empty p tags? I have tried using jquery and css to get rid of them but it doesn’t seem to always work. I thought I read that Themeforest doesn’t like us to get rid of the p tags all together. All my searching in these forums come up with the problem in shortcodes. I am not having that issue right now. It’s just in the plain editor. What is the “be all end all” solution to this issue?

280 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PrimaThemes says

You can use the solution from @bitfade,

https://gist.github.com/bitfade/4555047
190 posts
  • Has been part of the Envato Community for over 2 years
  • Has sold $1+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
ThemeBuddies says

that is a shortcode fix. I am not having the issue in my shortcodes right now. It’s in the regular posts that I am having the trouble

152 posts
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 100+ items on Envato Market
+6 more
nagaemas says

Does it happen when you put two line breaks after each line?

280 posts
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
PrimaThemes says

that is a shortcode fix. I am not having the issue in my shortcodes right now. It’s in the regular posts that I am having the trouble

If it is empty p tags because of the user add some line breaks on the editor, leave it, no need to think about it. We only need to educate our user about this, to make sure they know what happens if they add too many line breaks (enter) on the editor…

If for theme demo purpose, you can always make it looks clean in the editor to make it looks good to your buyer.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by