Skip to content

Snippet: Alter The Logo Alt & Title Attribute

Important: You can now do this via the Customizer without any custom code!

The following snippet can be used to modify the default header logo text which is used for the logo image alt attribute and the logo link title attribute when using an image based logo or the text displayed when using a standard text logo.

// Alter the logo alt and title attribute
add_filter( 'totaltheme/header/logo/text', my_logo_title() {
	return 'MY CUSTOM TITLE';
} );
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