skip to Main Content

Remove Top Bar Social Links Title Attributes

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://total.wpexplorer.com/docs/snippets/remove-topbar-social-title-attributes/
 */
add_filter( 'wpex_topbar_social_link_attrs', 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)
Back To Top