Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-05-22 16:14:25
- ghizza
- Member
- Registered: 2007-05-22
- Posts: 13
That unnecessary <p> tag...
Hello everybody,
I’ve searched here and there, but I couldn’t find a way to eliminate the <p></p> tag that Textpattern automatically applies to the bodies of articles.
I set my module this way: <div class="text"><txp:body /></div>
but the output is <div class="text"><p>The body of my article</p></div>
The <p></p> tag creates an unnecessary spacing in my news!
Thank you.
Ghizza
Last edited by ghizza (2007-05-22 16:17:50)
Offline
Offline
#3 2007-05-22 16:53:16
- ghizza
- Member
- Registered: 2007-05-22
- Posts: 13
Re: That unnecessary <p> tag...
Thanks a lot zero.
I disabled Textile and everything is fine.
I’m getting familiar with Textpattern and I’m reading something about Textile too.
Is there a way to manually “delete” this Textile behaviour?
I mean, perhaps editing some program files.
Textile is very powerful but these <p></p> tags interfere too much with the “box model” of my news.
Thanks again.
TXP is really extraordinary.
Offline
#4 2007-05-22 17:04:39
- TheEric
- Plugin Author
- From: Wyoming
- Registered: 2004-09-17
- Posts: 566
Re: That unnecessary <p> tag...
Eliminating the paragraph tabs in an article, and them interfering with your box model? …wow
Why not just use CSS to remove the padding/margin from the paragraph?
#parent_element { your ‘box-model’ stuff }
#parent element P { padding: 0; margin: 0; } /** or however you want it styled **/
Last edited by TheEric (2007-05-22 17:06:43)
Offline
Offline
#6 2007-05-22 22:55:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: That unnecessary <p> tag...
You can turn off Textile for excerpts only. Look under Advanced Options in the Write tab.
But as Eric points out, it is probably better to just use CSS rather than monkey with markup.
Offline
Pages: 1