SEO `href` attributes on links to crawl websites
-
Hi guys,
on pagespeed.web.dev under SEO score I have an issue with the search box tool.
How can I fix it? (image attached)
I also have yoast installed
Attachments:
You must be
logged in to view attached files.
Hello,
In the theme folder find the header-elements/search.php
file, your should copy it with the same path to the child theme and there edit this file, or rather change on the 50 line the <a href="javascript:void(0);"
to this <a href="#"
line.
https://monosnap.com/file/ZNTJN2rOa3w8bHYMciI54KZNXf15SP
Kind Regards
Perfect, fixed 🙂 Thanks a lot.
Any suggestion for those errors in the picture attached?
For hreflang I’ve tried to contact WPML, still waiting for an answer
For Canonical I don’t know to who should I ask
Attachments:
You must be
logged in to view attached files.
Hello,
Could you please check how it works with some default WordPress themes like TwentyTwenty or WooCommerce Storefront to understand is it our theme issue or not? Because seems that these all links are related to the WPML.
I look forward to hearing from you.
Kind Regards
I got an answer from WPML, they say
Hi,
thanks for contacting us.
The error you have is about missing canonical, but WPML doesn’t add them, so there’s nothing we can do about it.
The problem seems to be in relation to the theme, isn’t it?
Hello,
In order to find out if it is a theme problem, you need to check this issue on the default WordPress theme.
Looking forward to collaborating with you!
Kind Regards
As you suggested, I tried to activate another theme and the problem was still present.
But I’ve found the source problem, it was in relation with WPRocket. In fact I have cloudflare integration and the option Relative protocol was activated (image attached). i switched it off and now it’s ok 🙂
Hello,
Glad that you found the problem.
Always remember that you can reach out to us with any questions you may have.
We wish you a splendid day!
Kind Regards
The topic ‘SEO `href` attributes on links to crawl websites’ is closed to new replies.