Skip to content

Snippet: Remove Top Bar Social Links Title Attributes

Important: The theme NO longer adds title attributes to the social links this snippet is deprecated and shouldn't be used anymore.

By default the top bar social links include a title attribute for SEO reasons which will show a little tooltip in the browser when you hover over the social link. If you wish to disable this you can using the code below.

/**
 * Remove Top Bar Social Links Title Attributes.
 *
 * @link https://totalwptheme.com/docs/snippets/remove-topbar-social-title-attributes/
 */
add_filter( 'totaltheme/topbar/social/link_attributes', function( $attrs ) {
	unset( $attrs['title'] );
	return $attrs;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top