[Plugin: Better Tag Cloud] Adding human readable class to the tag
-
I’ve a suggestion for the update of the plugin!
I’m trying to style my tags individually and currently there is a unique class for each tag (tag-link-XX) with the id for that tag. This is great but I don’t know all the tag id’s when I’m editing css. So I’ve got a suggestion here: It updates the code to add a class to the tag which reads (tag-TAGNAME), and then I can easily use css to style it.
Thanks for the awesome plugin!
Lines 397 – 405 of ‘inc/page.php’if ( $count > $mincount ) { $tags_shown_so_far++; if ( $inject_count_outside == 'Yes' ) { $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id tag-$tag_name nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " . $tagsize . "$unit;'>$tag_name</a>" . nktagcloud_add_counter( $tag, $inject_count ) . $the_separator; } else { $a[] = "<a href='$tag_link' $echo_nofollow class='tag-link-$tag_id tag-$tag_name nktagcloud-$tagsize_int' title='" . attribute_escape( $topic_count_text_callback( $count ) ) . "'$rel style='font-size: " . $tagsize . "$unit;'>$tag_name" . nktagcloud_add_counter( $tag, $inject_count ) ."</a>" . $the_separator; } }
- The topic ‘[Plugin: Better Tag Cloud] Adding human readable class to the tag’ is closed to new replies.