Skip to main content

If you haven’t uploaded a logo, the blog-name will be used as a fallback (Settings > General). When you open the website on a mobile device, the blog-name is, in addition to the usual burger-icon for the navigation, also displayed. If you want to show a different text here (e.g. Navigation), you can use the following function:

add_filter('at_set_navigation_brand', 'at_set_custom_navigation_brand', 10, 1);
function at_set_custom_navigation_brand($value) {
	if(wp_is_mobile()) {
		$value = 'Navigation';
	}
	
	return $value;
}

In this case the value is only loaded for mobile devices.


Was this article helpful?

1 Star2 Stars3 Stars4 Stars5 Stars
(No Ratings Yet)

Keine Kommentare vorhanden


You have a question or an opinion about this post? Share it with us!

Your email address will not be published. Required fields are marked *

*
*