I built a feature for my site for adding attributions with optional links for my featured images that I've sourced from Pixabay, Unsplash, et cetera. The attributions are defined via new front matter parameters: featured_image_attr and featured_image_attrlink. The parameter names were chosen for consistency with the existing featured_image theme parameter, and the attr and attrlink parameters of the built-in figure shortcode. Attributions are displayed at the bottom right of the featured image in desktop mode, and at the bottom left in tablet & mobile mode (via the tr-l Tachyon class).
I built a feature for my site for adding attributions with optional links for my featured images that I've sourced from Pixabay, Unsplash, et cetera. The attributions are defined via new front matter parameters:
featured_image_attr
andfeatured_image_attrlink
. The parameter names were chosen for consistency with the existingfeatured_image
theme parameter, and theattr
andattrlink
parameters of the built-infigure
shortcode. Attributions are displayed at the bottom right of the featured image in desktop mode, and at the bottom left in tablet & mobile mode (via thetr-l
Tachyon class).Example front matter
Example desktop mode screenshot
Example mobile mode screenshot
If you're interested in incorporating the feature, I'll send a PR.
?