Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#7905 closed enhancement (fixed)

Nest the 'flat' formatted tag cloud into some element

Reported by: hudatoriq's profile hudatoriq Owned by: hudatoriq's profile hudatoriq
Milestone: 2.8 Priority: normal
Severity: normal Version:
Component: Widgets Keywords: has-patch commit
Focuses: Cc:

Description

When displayed as comma separated format, the clouds don't have any parent block element to assign some stylesheet properties to. When used in a sidebar widget, the tag cloud is on the same level with the widget title.

<li class="widget widget_tag_cloud" id="tag_cloud">
	<h2 class="widgettitle">Tag Cloud</h2>
	<a href="">Tag 1</a> <a href="">Tag 2</a> <a href="">Tag 3</a>
</li>

We can't treat the tag clouds as a block, for example styling their margin, padding etc.

When displayed as a list, we are able to do so, cause the tag list is contained inside <ul></ul>.

Providing a parent element to the 'flat' (comma separated) tag cloud would be the solution, for example:

<li class="widget widget_tag_cloud" id="tag_cloud">
	<h2 class="widgettitle">Tag Cloud</h2>
	<p><a href="">Tag 1</a> <a href="">Tag 2</a> <a href="">Tag 3</a></p>
</li>

I will come up with patches after hearing some opinions.

Attachments (1)

7905.diff (383 bytes) - added by Denis-de-Bernardy 15 years ago.

Download all attachments as: .zip

Change History (8)

#1 @hudatoriq
15 years ago

  • Milestone changed from 2.8 to 2.7
  • Owner changed from anonymous to hudatoriq

#2 @DD32
15 years ago

  • Component changed from General to Template

#3 @jacobsantos
15 years ago

  • Milestone changed from 2.7 to 2.8

2.7 is feature freeze, sending to 2.8.

#4 @Denis-de-Bernardy
15 years ago

  • Keywords needs-patch added
  • Milestone changed from 2.8 to Future Release

#5 @Denis-de-Bernardy
15 years ago

  • Component changed from Template to Widgets
  • Keywords has-patch commit added; needs-patch removed
  • Milestone changed from Future Release to 2.8

#6 @azaozz
15 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [11199]) Wrap tag cloud in a block element, props hudatoriq, fixes #7905

#7 @azaozz
15 years ago

Better in <div> as it's neutral.

Note: See TracTickets for help on using tickets.