Simple WAI (web accessibility) hack
-
Hi,
I was interested to see that Chris J. Davis has made his site meet all the Web Accessibility Initiative guidelines (designed to help blind or otherwise disabled people surf the net). With two small modifications, the default Kubrick template can meet almost all of the WAI guidelines (and all of the Priority 1 guidelines).
All modifications should be made to files in
wp-contern/themes/default
.- In
searchform.php
, replace this:
<input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" />
with this:
<label for="s"><span style="display: none;">Search this site </span><input type="text" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" alt="Search this site" /></label>
- In
header.php
, replace this:<html xmlns="https://www.w3.org/1999/xhtml">
with this (assuming your site is in English):
<html xmlns="https://www.w3.org/1999/xhtml" xml:lang="eng">
You can check the accessibility of your site with Cynthia Says at https://www.contentquality.com/.
- In
- The topic ‘Simple WAI (web accessibility) hack’ is closed to new replies.