
-
AuthorPosts
-
September 8, 2025 at 12:01 pm #1489050
I’d like to insert placeholder text so that Google Insight doesn’t report an accessibility error on my slider arrows. Do you have a CSS solution? I’ve found HTML solutions online, but I don’t know if we can modify the HTML to Enfold Child.
Here’s the error reported by Google Insight:
Links don’t have visible names
Write visible and unique text for links (and for image placeholder text, if you use it in links) so that screen reader users can easily position the cursor over them and enjoy a better browsing experience. Learn how to make links accessible.
Non-compliant elements
Here’s the error reported by Google Insight :div#wrap_all > div#main > div.avia-fullscreen-slider > a.scroll-down-link
September 9, 2025 at 6:21 am #1489078Hi!
Thank you for the inquiry.
Looks like the report is referring to the scroll-down link. Please create a test page and provide the link in the private field so we can check the slider element further — screenshots will also help.
Best regards,
IsmaelSeptember 9, 2025 at 9:24 am #1489082Voici un page test avec le donwn-link :
September 11, 2025 at 8:49 am #1489155Hi,
Thank you for the update.
Try to add this code to the functions.php file to include a < title > element inside the scroll-down svg image.
add_action( 'wp_footer', 'ava_script_mod', 9999 ); function ava_script_mod() { ?> <script type="text/javascript"> jQuery(document).ready(function($) { $('.scroll-down-link svg').each(function () { $(this).find('title').remove(); $(this).prepend('<title>Scroll down</title>'); }); }); </script> <?php }
Let us know the result.
Best regards,
IsmaelSeptember 12, 2025 at 8:51 am #1489182Hi, thanks for this answer, I just injected it into my function.php, but google insight still tells me the accessibility error:
Links don’t have visible names
Write visible and unique text for links (and for image placeholder text, if you use it in links) so that screen reader users can easily position the cursor over them and enjoy a better browsing experience. Learn how to make links accessible.https://pagespeed.web.dev/analysis/https-kerry-han-fr-test/2s8d8rqqkp?hl=fr&form_factor=mobile
September 12, 2025 at 1:04 pm #1489190i think google likes to see an aria-label on that links.
function ava_script_mod() { ?> <script type="text/javascript"> jQuery(function($){ $('.scroll-down-link').each(function() { $(this).attr('aria-label', 'Passer à la section suivante'); }); }); </script> <?php } add_action( 'wp_footer', 'ava_script_mod', 9999 );
by the way this:
jQuery(function($){ // is shorthand for jQuery(document).ready(function($) {
September 12, 2025 at 3:03 pm #1489194Thank you, it works perfectly, you can close this ticket
September 15, 2025 at 5:43 am #1489239 -
AuthorPosts
- The topic ‘name visible on .scroll-down-link’ is closed to new replies.