Created
February 7, 2013 16:09
-
-
Save INDIAN2020/4731967 to your computer and use it in GitHub Desktop.
remove title from tagcloud
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Remove title attribute from wp_tag_cloud | |
Adding this snippet to the functions.php of your wordpress theme will remove the title=”” attribute from the anchor tags when using wp_tag_cloud. | |
*/ | |
function replace_wps_title_att($output) { | |
$output = preg_replace('` title="(.+)"`', '', $output); | |
return $output; | |
} | |
add_action('wp_tag_cloud','replace_wps_title_att'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment