Please add href attributes to arrows for better SEO
-
Please add
href
attributes to arrows inwprev-public-com-min.js
to follow Google PageSpeed Insights basic SEO search engine optimization advice.Current code (slightly prettified):
arrows: {
prev:'<a class="'+d._+'-arrow prev">Prev</a>',
next:'<a class="'+d._+'-arrow next">Next</a>'
},Suggested code:
arrows: {
prev:'<a href="#wprev-prev" class="'+d._+'-arrow prev">Prev</a>',
next:'<a href="#wprev-next" class="'+d._+'-arrow next">Next</a>'
},An alternative solution could be use of another element instead of
a
for the arrows, e.g.span
:arrows: {
prev:'<span class="'+d._+'-arrow prev">Prev</span>',
next:'<span class="'+d._+'-arrow next">Next</span>'
},Currently a warning is shown and 8-10 points are deducted from Google PageSpeed Insights SEO score:
Links are not crawlable
Search engines may use href attributes on links to crawl websites. Ensure that the href attribute of anchor elements links to an appropriate destination, so more pages of the site can be discovered. Learn how to make links crawlable
Uncrawlable Link
Next
<a class="wprs_unslider-arrow next">
Prev
<a class="wprs_unslider-arrow prev">Example warning on your demo website: https://pagespeed.web.dev/analysis/https-wpreviewslider-com/3rx2kev317?hl=en&form_factor=mobile#seo
Thanks for the great plugin.
WP Google Review Slider 14.6
- You must be logged in to reply to this topic.