Home Forums WoodMart support forum SEO `href` attributes on links to crawl websites

SEO `href` attributes on links to crawl websites

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #418428

    lino.peverada
    Participant

    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.
    #418608

    Luke Nielsen
    Keymaster

    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

    #418627

    lino.peverada
    Participant

    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.
    #418666

    Luke Nielsen
    Keymaster

    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

    #418874

    lino.peverada
    Participant

    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?

    #419155

    Luke Nielsen
    Keymaster

    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

    #419330

    lino.peverada
    Participant

    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 🙂

    #419485

    Luke Nielsen
    Keymaster

    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

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘SEO `href` attributes on links to crawl websites’ is closed to new replies.