Skip to content

Commit

Permalink
Fix link to homepage in sticky header with custom logo (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
albig authored Oct 28, 2024
1 parent 5a93963 commit 46aee93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template-parts/header-standard.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
if ( function_exists( 'the_custom_logo' ) && has_custom_logo() ) {
$sunflower_custom_logo_id = get_theme_mod( 'custom_logo' );
$sunflower_custom_logo = wp_get_attachment_image_src( $sunflower_custom_logo_id, 'thumbnail' );
printf( '<a class="navbar-brand" href="%s">', esc_url( $sunflower_custom_logo[0] ) );
printf( '<a class="navbar-brand" href="%s">', esc_url( get_home_url() ) );
printf( '<img src="%s" class="custom-logo" alt="Logo" title="%s"></a>', esc_url( $sunflower_custom_logo[0] ), esc_attr( get_bloginfo( 'name' ) ) );
} elseif ( ( $sunflower_options['sunflower_terms_of_use'] ?? false ) === 'checked' ) {
printf( '<a class="navbar-brand" href="%s">', esc_url( get_home_url() ) );
Expand Down

0 comments on commit 46aee93

Please sign in to comment.