Closed splorp closed 10 years ago
Improved slightly. I'm a RegEx newb, so I duplicated decruft to target some of the things we wanted to remove in wp_tag_cloud. Still need to figure out rewriting the title.
Boom, baby!
The output of wp_tag_cloud
links are now formatted as such:
<a href="/tag/foo" title="View 1 post">Foo</a>
<a href="/tag/bar" title="View 2 posts">Bar</a>
Another one bites the dust, per commit 98d578cc37fe067c82081c8b10ddd6943772838f
I hate tag clouds at the best of times, but I know that some folks prefer to use them. Keeping this in mind, we should do some work at decrufting the output of the default WordPress cloud.
Specifically:
tag-link-*
classesBefore:
<a href='/tag/sometag' class='tag-link-36' title='2 topics' style='font-size: 8pt;'>sometag</a>
After:
<a href="/tag/sometag" title="2 posts">sometag</a>
I realize that some of these adjustments remove the frequency scaling from the tags themselves, but tough beans … we’re attempting to build a cleaner theme here, right?