WP is adding extra paragraph tags in the Preview and Published versions
-
I’ve been using tables in WP for some time so I didn’t expect to have problems with a new feature I’m posting. This afternoon, when I tried previewing, it happened again. WP is adding a huge chunk of whitespace in front of my first table. When I right-click for Inspect Elements, it shows me beaucoup empty paragraph tags. Which I do not have in my create a post window. Where are they coming from and how do I get rid of the bloody things!
The most recent post it occurred on is http://kddidit.wordpress.com/2012/09/06/upcoming-publications-sept-3/
The blog I need help with is: (visible only to logged in users)
-
To get rid of the extra space, you need to remove all of these:
<p><!--====ETC ETC==== --></p>They have no place inside table coding.
-
-
Hi,
I was able to reproduce this on my test blog with the Digg 3 theme, and after removing the code that justpi mentioned, the empty space disappeared.
If you need a comment there, can you try something like this?
<!-- genre -->(I tried that for the first one using text editor which worked fine.)
-
No Bryan, she needs to remove the comments altogether, because they produce p tags before the table (if you tried only one comment, the effect isn’t obvious).
If she insists on keeping the comments, she must add a huge negative top margin to the opening table tag. -
- The topic ‘WP is adding extra paragraph tags in the Preview and Published versions’ is closed to new replies.