the_custom_logo() WordPress Function

The custom logo is a WordPress function that allows you to display a custom logo on your website. This function can be used by developers to create a custom logo for their clients or by end users to display their own custom logo on their WordPress site. The custom logo function allows you to set a custom logo for your WordPress site by uploading an image or selecting one from your media library. You can also set the width and height of your custom logo.

the_custom_logo( int $blog_id ) #

Displays a custom logo, linked to home unless the theme supports removing the link on the home page.


Parameters

$blog_id

(int)(Optional) ID of the blog in question. Default is the ID of the current blog.


Top ↑

Source

File: wp-includes/general-template.php

function the_custom_logo( $blog_id = 0 ) {
	echo get_custom_logo( $blog_id );
}


Top ↑

Changelog

Changelog
VersionDescription
4.5.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More