Site logo

Archived topic

Comment Numbering

11 replies · Started by Carl on March 3, 2018

Viewing posts 1–12 of 12

I want to give each comment a number. I have an installation, there is this already implemented, but I can´t find it out, how.

Has someone an idea?

Here is an example:
https://www.carl-auer.de/blogs/kehrwoche/

Thanx & Regards
Wolfgang

Hi there,

Give this a shot:

li.depth-1 {
    list-style-type: decimal;
}

Hi Tom, thank you, but I want that every comment automatically gets a unique number, like it is in the example.

That code was taken from the example site you linked to.

Comments are numbered list, so each comment will have a unique number with that CSS.

OK, thank you very much! Something is there but hidden ...

Kind regards and have a nice weekend!

I'm not seeing the CSS on your site?

No problem - you as well! :)

Now the css-code is on the page, thank you for your great support!

Now, all Comments have numbers like

1.
1.
2.
2.
1.
2.
3.
1.

Better would be like

1.
1.1
1.2
2.
2.1
2.2
2.3
2.3.1

Do you have an Idea?

Kind regards
Wolfgang

Sorry, the System has deleted my blanks. My question is how can I number nested comments better.

Not the beste but one solution:

li.depth-1 {
list-style-type: decimal;
}

li.depth-2 {
list-style-type: upper-latin;
}

li.depth-3 {
list-style-type: lower-latin;
}

li.depth-4 {
list-style-type: upper-roman;
}

li.depth-5 {
list-style-type: lower-roman;
}

That looks like the best solution. I'm not sure how you'd do it otherwise.

OK, thank you!

I´m very amused of Generate Press and it is very often that I´m so happy of many functions they make the work with wordpress more easy. I can´t imagine how was the work without Generate Press before I have found it!

Regards
Wolfgang

Great to hear! Thank you! :)

This archived topic is closed to new replies.