Happiness Engineers Deliver ARIA Joy

WordCamp Albuquerque included a Happiness Bar stocked with Automattic Happiness Engineers. I went in with my problem about wanting to add ARIA roles to my new blog.

I was thinking it would have to be done in the functions.php file in the child theme.

Nope.

Turns out you can copy theme files such as header.php, footer.php, sidebar.php and others into your child theme folder, add the ARIA role where you want it, and that version of the file is what gets served. Updates to the parent theme don’t cause the ARIA roles to disappear.

Look at the beautiful ARIA roles on my blog now. And I have role=”contentinfo” in the footer, too!

aria roles
ARIA Roles displayed on Old Ain’t Dead

Thanks to Automattic for running a Happiness Bar at Word Camps!

Useful Links: 6 easy steps, 6 print faqs, WordCamp, teaching web design

The 6 Simplest Web Accessibility Tests Anyone Can Do is from Karl Groves.

6 Things I Learned about Print Stylesheets from HTML5 Boilerplate. This is by Joshua Johnson from Design Shack and explains how to use a media query to include a print stylesheet with your CSS.

I’m participating in WordCamp Albuquerque this weekend. If you are a WordPress user anywhere in the nearby area, I hope you are signed up for this great event. You’ll learn a lot!

Teaching Web Design to New Students in Higher Education is at Smashing Magazine by Jen Kramer. Must reading for web educators.

Think about ARIA roles when choosing a WordPress theme – Updated

ARIA landmark roles are used to improve accessibility and provide useful navigation points that a screen reader recognizes and can find quickly.

The role information is written into the HTML as an attribute of any element that fills a particular role. In the code, they look like this:

<header role="banner">
<nav role="navigation">

The current list of landmark roles includes:

  • application
  • banner
  • complementary
  • contentinfo
  • form
  • main
  • navigation
  • search

Some WordPress themes come with ARIA landmark roles built in from the start. It’s easy to find out if your theme uses them. One way is to look at your page source and search for “role” to see if or where it appears in the source code.

If you have the Web Developer Toolbar installed in your browser, use the Information menu to look at ARIA roles.

Display ARIA roles
Display ARIA roles in Information menu

This blog uses a slightly modified version of the basic WordPress Twenty Eleven theme. It’s an excellent theme in terms of ARIA information. Using the Display ARIA roles command from the Web Developer Toolbar, this blog looks like this:

Web Teacher ARIA roles
Web Teacher ARIA roles visible above the fold

One of the things you want to do when using ARIA roles is make sure that every section of your page that a screen reader user would want to find quickly has an appropriate landmark role. Twenty eleven has this covered.

I’m using a theme called Oxygen on my new blog Old Ain’t Dead.

Old Ain't Dead ARIA roles
Old Ain’t Dead ARIA roles

The only roles that comes out of the box with this theme identifies the navigation elements. A bit further down the page the social media sharing buttons do have role=”button” but the plugin maker deserves the credit for this, not the theme designer.

It’s easy to go into the theme files and add roles where you want them. For example. in the header.php file, I added role=”banner” like this:

adding a role
Adding a role to the header.php file

This is immediately reflected on the blog when I upload the header.php file.

the new banner role
The blog displays the banner role

I don’t regard this as a perfect solution, however. I am using a child theme. I made the adjustment in the header.php file of the parent theme.

Turns out you can copy theme files such as header.php, footer.php, sidebar.php and others into your child theme folder, add the ARIA role where you want it, and that version of the file is what gets served. Updates to the parent theme don’t cause the ARIA roles to disappear.

aria roles
ARIA Roles displayed on Old Ain’t Dead

Look at the beautiful ARIA roles on my blog now. And I have role=”contentinfo” in the footer, too!

A theme on wordpress.com

The two themes I’ve mentioned are self-hosted blogs, and I have control over the theme files. I also have a blog on wordpress.com – a free blog that I have no control over. I’m using a pretty old theme that I haven’t changed in years. It’s inadequate and I cannot do anything to fix it.

First 50 Words ARIA roles
First 50 Words ARIA roles

The two navigation landmarks you see come from the WordPress header bar, not from the theme.

I can change the theme to a more modern one, but if I stay with this one, there’s nothing. This is the incentive I need to take some time to look for a more current theme with ARIA roles included.

When you choose a WordPress theme, keep accessibility in mind and look for ARIA roles built into the theme by the designer.

For more information, see ARIA Roles 101.

Useful Links: Hate your CMS? Student Reps, Mobile Guidelines

I am so angry at computer

The Real Reason People Hate Their CMS brings up a lot of points worth pondering.

Adobe spreads the love on campus. If students are willing to become Adobe student reps they can get free Creative Cloud memberships.

The BBC Mobile Accessibility Standards and Guidelines (pdf) are available in draft form. Listen to this very interesting interview with Henny Swan, BBC accessibility specialist, about how the guidelines were created.

Useful links: Cite, code examples, carosels

On citing quotations. Again. Bruce Lawson offers some ideas to correct the problems regarding the cite element in HTML5.

Best practices for code examples. That’s not the way I’ve been doing it. Sigh.

A while back Jared Smith said just don’t use carousels, but here is a post from Access iQ about how to make them accessible. Carousels and Slideshows: accessibility for developers.

Useful links: Accessible Aesthetics, Social media, CMS

Making websites accessible without sacrificing aesthetics. This is from nomensa.

Improving the accessibility of social media in government. Tips for Facebook, Twitter and YouTube.

Why do organizations hate their content management systems? I wanted to link to this just so I could quote this wonderful sentence: “A typical CMS is like a digestive system with no capacity to poop.”

Useful links: Zoom, Open Glass, Fluid Grids, MOOC Credits

Browser zoom great for accessibility is from AlastairC and talks about the accessibility difference in normal browser zoom and text only zoom. This is really interesting and can affect your results when zooming to 200% to test your WCAG compliance.

Open Glass Project Demos how Useful Glass Can be if You’re Visually Impaired. Fascinating and creative project.

Tom Green has a series of tutorials fluid grids on Dreamweaver 6 at WebDesign Tuts+, including the first in the series: Fluid Grids. He has downloadable files. And his video doesn’t blur out frequently the way the one I showed you from Adobe/Lynda.com did the other day. Thanks, Tom, for letting me know about these terrific tutorials.

A Universities offer of credit for a MOOC gets no takers. The article has ideas about why.