Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Remove DIV tags around comments?
Hi, check out this page: http://www.alexburr.com/blog/article/89/alex-burr-2008
I am trying to present comments as a definition list. My comments_display
form has the following:
<txp:if_comments>
<dl id="comments">
<txp:comments />
</dl>
</txp:if_comments>
And my comments
form has the following:
<dt>
Posted by <txp:comment_name /> <txp:comment_time />
</dt>
<dd>
<txp:message />
</dd>
And yet Textpattern seems to be wrapping my comments in an empty DIV
element, which I have not specified anywhere.
Any ideas?
Offline
#2 2008-01-03 06:40:57
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Remove DIV tags around comments?
alexburr
Try…
<txp:if_comments>
<dl id="comments">
<txp:comments break="" />
</dl>
</txp:if_comments>
in comments_display
instead.
If you have set comments as a numbered list then Txp defaults the break attribute to li
otherwise it defaults to the div
you are trying to get rid of. Setting it explicitly should remove your problem.
— Steve
Offline
Re: Remove DIV tags around comments?
That did it! Thanks so much!
Offline