What is that code for?

Solved
ns7
Tourist
5 0 1

Hi guys,

can someone tell me what this code for is?
Found that in theme.liquid

Screenshot 2021-06-11 151009.png

0 Likes
Ninthony
Shopify Partner
1978 296 785

Not really sure, but it appears to relate to accessibility so I would leave it alone. It has a hidden attribute so it's probably not visible. To see what's getting inserted in that code you can go to  your en.default.json file ctrl + f for "general" then look for the accessibility object inside the JSON structure.


If my solution helped you, please like it and accept it as the solution!
If you'd like to make any edits to your store, please send me a personal message and we can discuss what you'd like to accomplish :D
bdowling
Explorer
66 13 39

This is an accepted solution.

"a11y"  stands for "computer accessibility". In this case, consider if a someone with some sort of blindness uses your site and (they correctly set up their accessibility settings on their device), these lines of code will tell the user's device to play audio telling them how to interact with your site as well as giving feedback as they interact. 

So my guess is the first line gives the message when the page is refreshed, the next line gives a message when an item is selected(or maybe how to select), and the third line gives slideshow instructions.

Having an accessible site not only allows more potential customers to use your site, it also helps with SEO. I hope this helps.

ns7
Tourist
5 0 1

Thanks!

0 Likes