SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Oct 23, 2009, 15:51 #1
- Join Date
- Nov 2008
- Posts
- 848
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Wordpress auto <p> insertion around my images
Having some trouble with wordpress inserting <p> tags around my img
my code:
<div>
<img />
<p>MY PARAGRAPH HERE<p>
</div>
but wordpress changes this to
<div>
<p><img /><p>
<p>MY PARAGRAPH HERE<p>
</div>
I don't want those <p> tags around my image, is there a way to disable this auto insertion? thanks
-
Oct 23, 2009, 19:08 #2
What I do is get rid of all white space:
Code HTML4Strict:<div><img /><p>MY PARAGRAPH HERE<p></div>
-
Oct 24, 2009, 00:44 #3
- Join Date
- Nov 2008
- Posts
- 848
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I tried that but it didn't work, probably because the <div> part is in my template, so in the post content the <img /> tag is the first thing entered.
Bookmarks