I am using the Allura template and have encountered an accessibility issue detected by Google PageSpeed Insights.
Problem: Unnamed login and cart links
Google PageSpeed flags two links as unnamed, which affects website accessibility:
Login link (sp-sign-in)
Cart link (easystore-cart-icon)
Since these links contain only icons and do not have text labels, screen readers cannot recognize them, and Google PageSpeed considers them problematic.
What do I need to do?
I need to add the following attributes:
aria-label="Login" title="Login"
for the login link and:
aria-label="Cart" title="Cart"
for the cart link to improve accessibility.
What I have already tried:
I have searched extensively but have not been able to find where these links are generated. Here’s what I have checked:
Override files for mod_login
Override files for mod_menu and mod_users
header.php files in the template and override directories
System files in Helix Ultimate (Platform.php, Helper.php, HTMLOverride.php)
Elements and modules in Joomla, SP Page Builder, and EasyStore
I have also used search tools in CPanel and SSH (grep -r "sp-sign-in"), but I still cannot locate the exact file where these links are generated.
My Question:
In which file are the sp-sign-in and easystore-cart-icon links generated in the Allura template, and what is the best way to add the aria-label and title attributes to them?
Thank you in advance for your help!