wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Remove title attribute from wp_tag_cloud

wordpress snippet

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.

snippet :  PHPcopy
function replace_wps_title_att($output) {
	$output = preg_replace('` title="(.+)"`', '', $output);
        return $output;

Did you like this post? If so please share it with your friends. Thanks!