Generated p before img
-
My posts often begin, simply, with an ‘img’. The loop in my template to display a post contains, simply, the usual ‘php the_content…’ . Upon viewing the source online, I find that WordPress has inserted a ‘p’ in front of the ‘img’. (And, FWIW, the ‘p’ is never closed.) In addition to producing invalid HTML, this insertion yields difficulty in my CSS. (I would like to style the first paragraph of each post in a slightly larger font, and all but the first paragraph text-indented.) How may I avoid insertion of this ‘p’? My site is https://fjpoblam.com
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Generated p before img’ is closed to new replies.