Skip to content

Instantly share code, notes, and snippets.

@INDIAN2020
Created February 7, 2013 16:09
Show Gist options
  • Save INDIAN2020/4731967 to your computer and use it in GitHub Desktop.
Save INDIAN2020/4731967 to your computer and use it in GitHub Desktop.
remove title from tagcloud
/*
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