WordPress.org

Ready to get started?Download WordPress

Forums

Better Tag Cloud
Adding human readable class to the tag (1 post)

  1. circlecube
    Member
    Posted 3 years ago #

    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;
    			}
    		}

    http://wordpress.org/extend/plugins/nktagcloud/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic