VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: afentiko2000 on December 20, 2021, 21:37:59 PM

Title: Errors empty link to fancybox via webaim checker
Post by: afentiko2000 on December 20, 2021, 21:37:59 PM
Hello, I am facing a problem with WCAG2.0 via wave.webaim.org checker. Specifically the errors are an empty link to fancybox "A link contains no text." My html errors
<a href="javascript:;" id="fancybox-left">
<span class="fancy-ico" id="fancybox-left-ico"></span>
</a>

<a href="javascript:;" id="fancybox-right">
<span class="fancy-ico" id="fancybox-right-ico"></span>
</a>
Could someone help me resolve them. There are the last 2 errors in my site and it's highly importan to reset errors.
I am not an expert in coding, self-taught in virtuemart and joomla management.
VM 3.8.8
J 3.9.28


Title: Re: Errors empty link to fancybox via webaim checker
Post by: Studio 42 on December 22, 2021, 17:25:02 PM
This is not a real problem, because the link is to interact with the slideshow (next and before)
Most javascripts slideshow have same problem
If you really need to solve this then disable pagination links in fancybox code
         nav_left = $('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
         nav_right = $('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')

Title: Re: Errors empty link to fancybox via webaim checker
Post by: afentiko2000 on December 27, 2021, 08:20:32 AM
Thanks for the reply. By disabling pagination you mean to uncomment the lines in components/com_virtuemart/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js ?
I had already done that but the error still exist in checking.