186 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
186 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

116 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
+5 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.

by
by
by
by
by
by