Make WordPress Core

Opened 17 years ago

Closed 11 years ago

#4518 closed enhancement (wontfix)

Nested <ol> <ul> lists display incorrectly with default theme

Reported by: andrewjorgensen's profile andrewjorgensen Owned by: iandstewart's profile iandstewart
Milestone: Priority: normal
Severity: normal Version: 2.2.1
Component: Themes Keywords:
Focuses: Cc:


A nested ordered / unordered list places bullets AND numbers on the unordered list. You can see an example of this on my own site. The bug is somewhere in wp-content/themes/default/style.css. I fixed it once before but I don't recall where the bug is now.

Attachments (2)

4518.diff (394 bytes) - added by rob1n 17 years ago.
4518b.diff (377 bytes) - added by Nazgul 17 years ago.

Download all attachments as: .zip

Change History (25)

#1 @rob1n
17 years ago

  • Milestone set to 2.2.2
  • Owner changed from anonymous to rob1n
  • Status changed from new to assigned

17 years ago

#2 @rob1n
17 years ago

Does that help?

#3 @pishmishy
17 years ago

  • Keywords has patch added

#4 @pishmishy
17 years ago

  • Keywords has-patch added; has patch removed

#5 @Otto42
17 years ago

That patch would get rid of the >> marks, but not the numbering.

The bug is in the default theme's style.css:

ol li, #sidebar ul ol li {
        list-style: decimal outside;

That leading "ol li" seems like it should be "#sidebar ol li" instead. Making that change will get rid of the numbers being incorrectly added to the unordered lists (which do fit that rule, given that they are "ol li ul li" and there's no overriding list-style-type for ul li's given).

17 years ago

#6 @Nazgul
17 years ago

New patch attached, based on Otto42's suggestion.

#7 @foolswisdom
17 years ago

  • Milestone changed from 2.2.2 to 2.2.3

#8 @Nazgul
17 years ago

  • Keywords commit added
  • Milestone changed from 2.2.3 to 2.3 (trunk)

#9 @Johnny_one_eye
17 years ago

This still does not solve the problem. I was also having it. It seems this is what's specifically causing the problem:

.entry ul li:before, #sidebar ul ul li:before {
	content: "\00BB \0020";

This can be added to fix the glitch:

.entry ol li:before {
	content: "";

However, now ol's look kind of funny. On my site I also added another line to .entry ol to make the ol's look right:

	list-style: decimal inside;

#10 @Johnny_one_eye
17 years ago

er whoops, better idea. instead of adding the list-style to .entry ol add this:

	text-indent: 0px;

#11 @Johnny_one_eye
16 years ago

Just wondering what the status of this one is...?

#12 @rob1n
16 years ago

  • Owner rob1n deleted
  • Status changed from assigned to new

#13 @westi
16 years ago

  • Keywords needs-testing added; commit removed

#14 @Johnny_one_eye
16 years ago

I really feel like the following should be added to 4518.diff:

.entry ol {
	text-indent: 0px;

The code in 4518.diff + that snippet and it would be perfectly fixed. Please note that 4518b.diff does NOT fix this issue.

#15 follow-up: @mrmist
15 years ago

See also #4449

#16 in reply to: ↑ 15 @Nicholas91
15 years ago

  • Cc dragos.nicholas@… added

Replying to mrmist:

See also #4449

It seems that the problems are in IE7, better also check the solutions in #4449.

#17 @Denis-de-Bernardy
15 years ago

  • Keywords needs-patch added; has-patch needs-testing removed
  • Milestone changed from 2.9 to Future Release
  • Type changed from defect (bug) to enhancement

#18 @johnbillion
14 years ago

  • Keywords needs-patch removed
  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

n/a now we have Twenty Ten

#19 @nacin
14 years ago

  • Component changed from Template to Themes
  • Milestone set to site
  • Resolution invalid deleted
  • Status changed from closed to reopened

#20 @nacin
14 years ago

  • Owner set to iandstewart
  • Status changed from reopened to assigned

#21 follow-up: @GaryJ
13 years ago

Is this ticket still valid now that Twenty Eleven is the default theme, and Default isn't included any more?

#22 in reply to: ↑ 21 @johnbillion
13 years ago

Replying to GaryJ:

Is this ticket still valid now that Twenty Eleven is the default theme, and Default isn't included any more?

The theme is still available on, which is why Nacin re-opened it after I closed it. Doesn't look like there's a lot of interest in fixing it though.

#23 @sabreuse
11 years ago

  • Milestone deleted
  • Resolution set to wontfix
  • Status changed from assigned to closed

There was an argument for leaving this open a few years back when we didn't have a lovely stack of default themes, but nobody's shown any interest in touching it since. Say goodnight, Gracie!

Note: See TracTickets for help on using tickets.