Recent Topics

1 Jul 27, 2007 23:05    

Hello,

I want to affect un css class to the first paragraph of the post and ONLY to the first one.
Do you have an idea how I can do that ?
Is there any way to use the auto p plugin for this ?

Examples of post:

blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla
bla blabla blabla blabla blablabla blablabla blablabla

=>

<p class="first">blablabla blablabla blablabla blablabla blablabla blablabla blablabla blablabla</p>
<p>bla blabla blabla blabla blablabla blablabla blablabla</p>

2 Jul 28, 2007 01:19

You could probably hack the auto-p to do this, just before it does "return $content", or you could just start your post with "<p class="foo">......................bar</p> and the leave auto-p to look after the rest.

¥


Form is loading...