woocommerce Links are not crawlable

#561934
  • Resolved junsho666
    Rank Math free

    When I use pagespeed to check the site, in the SEO section it says: Links are not crawlable:.

    Can rank math solve this problem? chatgpt gave me a piece of code to add at the end of the function file, however it does not have a solution to this problem, his code is as follows:

    add_filter( 'wp_nav_menu_items', 'remove_empty_links', 10, 2 ).
    function remove_empty_links ( $menu_items, $args ) {
        return preg_replace( '/<as.*?href=""[^>]*></a>/i', '', $menu_items ).
    }

    Screenshots of pagespeed detection results can be found at Sensitive Data.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    As with the image you shared, it looks like the search icon is not linked to anything. To be able diagnose the issue properly, would you please share the affected URL with us.

    Looking forward to helping you.

    Thank you

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    All links on the site have this problem, please see the latest sensitive data.

    Hello,

    The empty ahref attribute on your site is coming from the search feature/button. I have attached the screenshot in the sensitive data section for your reference.

    If you’re using a search plugin on your site, then you can get in touch with their developer to fix the issue. However, if the search bar feature is coming from your theme, then you can contact the theme developer for that.

    Hope that helps.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I can’t find any new information in the sensitive data section. Can you please confirm if you removed the previously shared information from the sensitive data section or if you need any further assistance with this?

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘woocommerce Links are not crawlable’ is closed to new replies.