Hello,
Is there a way to expose the instagram caption as ALT text.
It's a requirement for an accessible website.
Thanks.
Alex
Hello,
Is there a way to expose the instagram caption as ALT text.
It's a requirement for an accessible website.
Thanks.
Alex
Comments
Comment #1
yanniboi commentedYes, you can edit provide your own template file.
Copy the instagram-block-image.tpl.php file to your themes templates directory and modify the markup to your desire.
More information https://www.drupal.org/node/341628
Comment #2
alexvgtb commentedThanks Yanniboi! I did edit the instagram-block-image.tpl.php like this:
However it looks like the caption is not an available variable. Did I miss something? Thanks.
Alex
Comment #3
yanniboi commentedI provide the $post variable which includes EVERYTHING that instagram gives you in a request. To find the caption, enable the devel module (https://www.drupal.org/project/devel) and type
in the template file.
You can then navigate the $data variable to find the caption.
Comment #4
yanniboi commentedI think what you are looking for is:
$post->caption->textComment #5
miwayha commentedThis is a pretty simple module. It would be nice for it to be accessible out of the box so that it could be used by site builders who don't have coding skills.
I'll work on a patch for this for it to be accessible out of the box.
Comment #6
mgiffordComment #7
mgiffordComment #8
yanniboi commentedComment #9
vuil