{"id":800,"date":"2012-08-30T22:27:05","date_gmt":"2012-08-30T13:27:05","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=800"},"modified":"2012-08-30T22:28:25","modified_gmt":"2012-08-30T13:28:25","slug":"how-to-edit-customize-tag-cloud-deafault-tooltip-to-tag-name","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-edit-customize-tag-cloud-deafault-tooltip-to-tag-name\/","title":{"rendered":"How to Edit Customize Tag Cloud deafault tooltip to Tag Name"},"content":{"rendered":"<p>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().<\/p>\n<p>By default it shows something like <strong>1 topics, 5 topics<\/strong> etc, and i want to make it something like\u00a0 <strong>&#8220;Tag Name&#8221; <\/strong>on mouseover<strong><\/strong><\/p>\n<p><strong><!--more--><br \/>\n<\/strong><\/p>\n<p>So how to do it \u2026?<\/p>\n<p>Open <strong>category-template.php<\/strong> which is located under \/<strong>wp-includes<\/strong> folder.<\/p>\n<p>Search for text &#8220;tag-link-&#8221;<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$a&#x5B;] = &quot;&lt;a class=&quot;tag-link-$tag_id&quot; style=&quot;font-size: &amp;quot; . \t\t\tstr_replace(;&quot; title=&quot;&amp;quot; . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . &amp;quot;&quot; href=&quot;$tag_link&quot;&gt;$tag_name&lt;\/a&gt;&quot;;\r\n<\/pre>\n<p>Change to<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\r\n$a&#x5B;] = &quot;&lt;a class=&quot;tag-link-$tag_id&quot; style=&quot;font-size: &amp;quot; . \t\t\tstr_replace(;&quot; title=&quot;$tag_name&quot; href=&quot;$tag_link&quot;&gt;$tag_name&lt;\/a&gt;&quot;;\r\n<\/pre>\n<h4>Incoming search terms:<\/h4><ul><li><a href=\"https:\/\/www.santoshkori.com\/blog\/how-to-edit-customize-tag-cloud-deafault-tooltip-to-tag-name\/\" title=\"santoshkori\">santoshkori<\/a> (2422)<\/li><\/ul>","protected":false},"excerpt":{"rendered":"<p>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\u00a0 &#8220;Tag Name&#8221; on mouseover Incoming search terms:santoshkori (2422)<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[382,725],"class_list":["post-800","post","type-post","status-publish","format-standard","hentry","category-just-blogging","tag-customize-tag-cloud-deafault-tooltip","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/800","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=800"}],"version-history":[{"count":4,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions"}],"predecessor-version":[{"id":804,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/800\/revisions\/804"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=800"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=800"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=800"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}