196 posts
  • 3 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
+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
  • Affiliate Level 2
  • Author Level 6
  • Collector Level 2
  • Exclusive Author
+1 more
PrimaThemes
says

You can use the solution from @bitfade,

https://gist.github.com/bitfade/4555047
196 posts
  • 3 Years of Membership
  • Author Level 1
  • Collector Level 1
  • Exclusive Author
+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

252 posts
  • Elite Author
  • Author Level 8
  • Weekly Top Seller
  • Trendsetter
+7 more
nagaemas
says

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

280 posts
  • Affiliate Level 2
  • Author Level 6
  • Collector Level 2
  • Exclusive Author
+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