UCF / UCF-WordPress-Theme

A generic, responsive WordPress theme for UCF websites, built off of the Athena Framework.
3 stars 6 forks source link

Galleries #3

Closed cjg89 closed 6 years ago

cjg89 commented 6 years ago

Proactively adds some basic WordPress [gallery] shortcode overrides, which allow you to specify thumbnail sizes using Athena grid column sizes per breakpoint.

Code is somewhat borrowed from what was added to Downtown recently, with the exception of a lightbox/modal gallery feature--Fancybox (the plugin we use on Downtown) unfortunately seems a bit lacking for keyboard users (focus isn't set properly on the opened modal contents 100% of the time, and captions cannot be tabbed into and read aloud by a screenreader, at least in my experience), so until I can figure out a more accessible, tabbing-friendly solution, I'm omitting a lightbox/modal option for opening images in this theme. However, these changes should make it fairly simple to add a lightbox feature later once we figure out a good solution.

Resolves #1.