Skip to content

Commit

Permalink
Update skip link target and change content wrapper in header.php
Browse files Browse the repository at this point in the history
The commit modifies the 'header.php' file of the WP Kit Elementor theme. The target of 'skip-link' is changed to '#content' from '#main' to improve accessibility for screen-reader users. Additionally, the main content wrapper is now a 'div' with id 'content', instead of a 'main' element with id 'main'. This enhances HTML semantics to accurately represent the unique content of a particular page, not the entire website.
  • Loading branch information
garikhg committed Dec 3, 2023
1 parent 845a4ca commit bd13faf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
<?php wp_body_open(); ?>
<div id="page-wrapper" class="site-page">

<a class="skip-link screen-reader-text" href="#main">
<a class="skip-link screen-reader-text" href="#content">
<?php esc_html_e( 'Skip to content', 'wpkit-elementor' ); ?>
</a>

<?php get_template_part( 'template-parts/header' ); ?>

<main id="main" class="container content-area">
<div id="content" class="site-content">


0 comments on commit bd13faf

Please sign in to comment.