Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-14 01:39:52
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
How do I remove the numbers...
from my comments? Right now I’ve got two dummy comments set up if you will, just testing everything, and it’s numbering them. I’d like to just have the comments displayed without a numbered list.
Currently this is what I’m using as my Comment Form:
<code>
<div id=“comments”>
<txp:comment_name /> posted a comment on <txp:comment_time />
<txp:message />
</div>
</code>
<br />
I don’t see anything there that would allow me to remove the numbers for each comment…?
Last edited by deronsizemore (2006-01-14 01:40:13)
Offline
#2 2006-01-14 02:05:49
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: How do I remove the numbers...
This is controlled by the wraptag
attribute of the txp:comments tag. The default depends on the “Present comments as a numbered list?” preference – if Yes, it uses <ol>..</ol>
.
Alex
Offline
Re: How do I remove the numbers...
Which is, in most case, a “best practice”. Easier to parse through, to degrade without CSS, and so on.
If your need is purely visual, you can do that with CSS.
Target you list, and apply a list-style:none;
to it. For example :
<code>div#comments ol {list-style:none;margin:0;padding:0;}</code>
Offline
#4 2006-01-14 04:22:01
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: How do I remove the numbers...
Thanks for the replies guys.
I didn’t realize there was a preference for this until zem pointed it out. I simply clicked the “no” radio button on “present comments as a numbered list?”. Is this wrong to do? Right now everything seems to be how I want it…Would it be better for me to use CSS and have list-style: none? Or would it be better to control it through the wraptag attribute?
Offline
Re: How do I remove the numbers...
If you simply have a visual need not to display number, yes use CSS.
If you have other need that require to drop the ordered list, then drop it.
Offline
#6 2006-01-15 02:01:02
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: How do I remove the numbers...
Thanks. I guess I need to change it. I’m only needing for visual affects. I appreciate the help. :)
Offline
#7 2006-01-15 04:48:35
- deronsizemore
- Member
- From: Kentucky
- Registered: 2005-11-02
- Posts: 324
Re: How do I remove the numbers...
Weird…tryed the <code>list-style: none;</code> aproach and it didn’t do anything. So I just turned the list off in the preferences. Thanks for the help though.
Offline
Pages: 1