Skip to content

Commit

Permalink
fix: remove unnecessary title attributes from brand elements
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed Jan 9, 2025
1 parent e4c9da9 commit cc28d0f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions header-footer-grid/templates/components/component-logo.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@

$aria_label = trim( get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' ) );
if ( $is_not_link ) {
$start_tag = '<span class="brand" title="&larr; ' . get_bloginfo( 'name' ) . '" aria-label="' . esc_attr( $aria_label ) . '">';
$start_tag = '<span class="brand" aria-label="' . esc_attr( $aria_label ) . '">';
$end_tag = '</span>';
} else {
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" title="&larr; ' . get_bloginfo( 'name' ) . '"
aria-label="' . esc_attr( $aria_label ) . '" rel="home">';
$start_tag = '<a class="brand" href="' . esc_url( home_url( '/' ) ) . '" aria-label="' . esc_attr( $aria_label ) . '" rel="home">';
$end_tag = '</a>';
}

Expand Down

0 comments on commit cc28d0f

Please sign in to comment.