Skip to content

Commit 3207030

Browse files
authoredJan 22, 2025··
Merge pull request #4352 from Codeinwp/fix/sie-logo-attribute
fix: remove unnecessary title attributes from brand elements
2 parents 5c30549 + cc28d0f commit 3207030

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎header-footer-grid/templates/components/component-logo.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,10 @@
4747

4848
$aria_label = trim( get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' ) );
4949
if ( $is_not_link ) {
50-
$start_tag = '<span class="brand" title="&larr; ' . get_bloginfo( 'name' ) . '" aria-label="' . esc_attr( $aria_label ) . '">';
50+
$start_tag = '<span class="brand" aria-label="' . esc_attr( $aria_label ) . '">';
5151
$end_tag = '</span>';
5252
} else {
53-
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" title="&larr; ' . get_bloginfo( 'name' ) . '"
54-
aria-label="' . esc_attr( $aria_label ) . '" rel="home">';
53+
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" aria-label="' . esc_attr( $aria_label ) . '" rel="home">';
5554
$end_tag = '</a>';
5655
}
5756

0 commit comments

Comments
 (0)
Please sign in to comment.