making alt tags required in posts and galleries

soaringeagle
@soaringeagle
9 years ago
3,304 posts
im not sure how to do this, even with template edits.
when people add images to posts using embed media, is there any way to require an alt tag?
even trickier since photos are added in bulk to the galleries, is there any way to require alt tags for each and every photo?
accessibility is a high priority. our main audience is physically challenged, not visually, but we have had a number of visually impaired people fly with us (not as students of course) so maximum site accessibility to screen readers and all manner of assistive technologies is highly important to us.
there are other compliance issues I am working on getting you a report on, but a big bi part of accessibility is having alt tags on all major images
plus its just good seo
but for us, it goes beyond that and having alt tags as a required field when creating and editing posts and gallery photos is very important (post pages,blogs, anything that uses the text editor ..if possible if it could check for images then request a alt tag on submit, or, better yet, require 1 as you embed it)

if there were an easy way to do it at least in the gallery to start that would be a plus



--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities

updated by @soaringeagle: 04/18/17 12:16:18PM
michael
@michael
9 years ago
7,800 posts
Since you can upload a lot of photos in one there is no way to put a required field into that interface. You could restrict users to only uploading one image at a time, but that would be annoying to uploaders.

You could use the alt tag as the name of the image, but its very normal to name images 1.jpg 2.jpg so they are useless alt tags.

The best way I can think of is to add a custom form field for the alt tags, make it required and then only display images that have that field filled in when you create your jrCore_list calls. so not image without an alt tag shows up.
soaringeagle
@soaringeagle
9 years ago
3,304 posts
thought of all that and 1 thing is the image name 1.jpg often becomes title, so maybe adding a step after upload that shows each image uploaded with a title desription and alt tag feild next to each with title and alt being required (but not auto filling in the 1.jpg)
just forcing them to set a title is a huge seo improvement let alone the alt tag
could a step 2 be added that lets you add descriptions and requires the title to be set to something other then the default filename
i dont see an easy way to add a form field for alt tag then import into the html with a smarty call

maybe this should have been moved to suggestions since doesnt seem to be an asy solution without adding that 2nd step to the galery upload process


--
soaringeagle
head dreadhead at dreadlocks site
glider pilot student and member/volunteer coordinator with freedoms wings international soaring for people with disabilities
brian
@brian
9 years ago
10,149 posts
I would recommend NOT requiring alt tags from your users - that's going to be a pain - just make sure your templates have alt tags set everywhere that automatically use the appropriate info that is available from the item.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags