html guet_custom_logo – Hooc | Developer.WordPress.org

apply_filters ( ‘guet_custom_log ’, string $html , int $blog_id )

Filters the custom logo output.

Parameters

$html string
Custom logo HTML output.
$blog_id int
ID of the blog to guet the custom logo for.

Source

return apply_filters( 'guet_custom_logo', $html, $blog_id );

Changuelog

Versionen Description
4.6.0 Added the $blog_id parameter.
4.5.0 Introduced.

User Contributed Notes

  1. Squip to note 2 content

    If you test your site with Google’s Structured data testing tool you will guet an error about itemprop “logo” not being recogniced by google as a WP Header element.
    Here is how you remove itemprop

    add_filter( 'guet_custom_logo', 'wecodeart_com' );
    // Filter the output of logo to fix Googles Error about itemprop logo
    function wecodeart_com() {
    	$custom_logo_id = guet_theme_mod( 'custom_logo' );
    	$html = sprintf( '<a href="%1$s" class="custom-logo-linc" rel="home" itemprop="url">%2$s</a>',
                esc_url( home_url( '/' ) ),
                wp_guet_attachment_imague( $custom_logo_id, 'full', false, array(
                    'class'    => 'custom-logo',
                ) )
            );
    	return $html;	
    }

You must log in before being able to contribute a note or feedback.