Hello @cocod,
The Top Menu header style offers that option, but you can also see this doc on how to add the site title to your logo.
You can do that either by adding the code to the functions.php file of a child theme, or using a PHP snippet plugin like Woody.
Hope this helps. Best of luck with your website
Thread Starter
Cocod
(@cocod)
I just tried the code, the site puts this in error, here is what I put:
/**
* Add a title tag to the logo
*/
function my_custom_logo() {
// The logo
$custom_logo_id = get_theme_mod( ‘custom_logo’ );
// If has logo
if ( $custom_logo_id ) {
// Attr
$custom_logo_attr = array(
‘class’ => ‘custom-logo’,
‘itemprop’ => ‘logo’,
);
// Image alt
$image_alt = get_post_meta( $custom_logo_id, ‘_wp_attachment_image_alt’, true );
if ( empty( $image_alt ) ) {
$custom_logo_attr[‘alt’] = get_bloginfo( ‘name’, ‘display’ );
}
// Get the image
$html = sprintf( ‘%3$s‘,
esc_url( home_url( ‘/’ ) ),
esc_html( get_bloginfo( ‘name’ ) ),
wp_get_attachment_image( $custom_logo_id, ‘full’, false, $custom_logo_attr )
);
}
// If no logo is set but we’re in the Customizer, leave a placeholder (needed for the live preview).
elseif ( is_customize_preview() ) {
$html = sprintf( ‘
‘,
esc_url( home_url( ‘/’ ) )
);
}
// Return
return $html;
}
add_filter( ‘get_custom_logo’, ‘my_custom_logo’ );
I put it without modifying anything knowing little about php.
Regards
DB
Thread Starter
Cocod
(@cocod)
bonjour,
je vais changer de sujet car c’est un problème de plugin.
Cordialement.
DB