Home » Just Blogging » How to Edit Customize Tag Cloud deafault tooltip to Tag Name

Another issue i faced during the wordpress development, i want to change the tooltip text which appears on hovering the mouse over the tags created by wp_tag_cloud().

By default it shows something like 1 topics, 5 topics etc, and i want to make it something like  “Tag Name” on mouseover


So how to do it …?

Open category-template.php which is located under /wp-includes folder.

Search for text “tag-link-”

$a[] = "<a class="tag-link-$tag_id" style="font-size: &quot; . 			str_replace(;" title="&quot; . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . &quot;" href="$tag_link">$tag_name</a>";

Change to

$a[] = "<a class="tag-link-$tag_id" style="font-size: &quot; . 			str_replace(;" title="$tag_name" href="$tag_link">$tag_name</a>";

Array ( [0] => Just Blogging )