Skip to content

Commit

Permalink
theme check a11y fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaiz committed Nov 13, 2018
1 parent cd3b393 commit 695c79e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* updated with non-blocking order
* see here: https://csswizardry.com/2018/11/css-and-network-performance/
*
* In short, place any js that doesn't need to act on css before any css to
* In short, place any js here that doesn't need to act on css before any css to
* speed up page loads.
*/
?>
Expand Down Expand Up @@ -82,10 +82,10 @@

</div>

<nav class="header-nav primary-menu" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement" aria-label="<?php _e( 'Primary Menu ', 'universal' ); ?>">
<nav class="header-nav primary-menu" role="navigation" itemscope itemtype="https://schema.org/SiteNavigationElement" aria-label="<?php _e( 'Primary Menu ', 'platetheme' ); ?>">

<?php // added primary menu marker for accessibility ?>
<h2 class="screen-reader-text"><?php _e( 'Primary Menu', 'universal' ); ?></h2>
<h2 class="screen-reader-text"><?php _e( 'Primary Menu', 'platetheme' ); ?></h2>

<?php // see all default args here: https://developer.wordpress.org/reference/functions/wp_nav_menu/ ?>

Expand Down
Binary file modified readme.txt
Binary file not shown.
2 changes: 1 addition & 1 deletion searchform.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</label>

<input type="search" class="search-field"
placeholder="<?php echo esc_attr_x( 'Search', 'placeholder', 'platetheme' ) ?>"
placeholder="<?php echo esc_attr_x( 'Search', 'placeholder', 'platetheme' ) ?>"
value="<?php echo get_search_query() ?>" name="s"
title="<?php echo esc_attr_x( 'Search for:', 'label', 'platetheme' ) ?>" />

Expand Down

0 comments on commit 695c79e

Please sign in to comment.