• maxwww

    (@maxwww)


    Pagespeed insights shows mobile search error.

    • This topic was modified 1 year ago by maxwww.
Viewing 5 replies - 1 through 5 (of 5 total)
  • 1dr0.a11n

    (@1dr0a11n)

    Hello @maxwww!

    Could you please provide more details about the link that is causing this issue? It’s important to ensure that the href attribute in your links correctly points to the target location. This allows search engines to index pages on your site effectively.

    If you could share which specific link is having this problem, I’d be able to guide you better on how to resolve it.

    Looking forward to hearing from you!

    Thread Starter maxwww

    (@maxwww)

    https://developers.google.com/speed/pagespeed/insights/

    The error occurs on all pages:
    https://thc-thc.com
    https://seedbay.pl

    Woocommerce and plugins are up to date and unmodified.

    1dr0.a11n

    (@1dr0a11n)

    Hello @maxwww! Thanks for sharing your sites. I understand you’re concerned about the error flagged by Google PageSpeed Insights.

    It’s worth noting that the handheld footer bar search is not exactly a link and doesn’t need to be crawled, which is why it has an empty href attribute. However, I can see why you’d want to resolve this issue to pass the PageSpeed Insights reports.

    There’s a function in this GitHub thread below that could help fix this.

    Handheld footer bar search – Empty href attribute – Bad for PageSpeed Insights / SEO score?#2074

    Could you give it a try and let me know how it goes? Looking forward to hearing from you!

    Thread Starter maxwww

    (@maxwww)

    Thanks

    Hey maxwww,

    This is what I’ve done:
    Through ftp go to /themes/inc/woocommerce/storefront-woocommerce-template-functions then search for storefront_handheld_footer_bar_search probably line 715.

    Modify echo '<a href=""' for echo '<a href="#"'.
    This way Google Pagespeed Insight mobile search error it’s solved.

    However, keep in mind every time parent theme it’s updated, you got to do it again.

    Best regards,

    Mercadearse

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pagespeed insights mobile search error’ is closed to new replies.