Remove Title Attribute from wp_tag_cloud

Snippets by IsItWP

Title attribute is a default value in wp_tag_cloud. You can remove title attribute from wp_tag_cloud to customize the information.

Instructions: Add the following code to the functions.php file of your WordPress theme.

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

You may also enjoy removing WPML meta tag.

Comments  Leave a Reply

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!