deactivate the <link rel="next" href=" tag on my site

#759563
  • Resolved Maxime
    Rank Math free

    Hello, I want to deactivate the <link rel=”next” href=” on my website, but I can not find where.

    I am not talking about the noindex those pages. I want the tag <link rel=”next” href=” to disappear from the list of tags in the <head>

    Please advise.

    Regards

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

    I understand that you want to deactivate the `

    Maxime
    Rank Math free

    Hello, I want to deactivate the <link rel=”next” href=” on my website, but I can not find where.

    I am not talking about the noindex those pages. I want the tag <link rel=”next” href=” to disappear from the list of tags in the <head>

    Please advise.

    Regards

    Hello,

    You can use this filter to remove/disable the rel next/prev tags from Rank Math:

    /**
     * Allows developers to handle rel="next" / rel="prev" by themselves.
     *
     * @param bool $links_generated Whether or not to handle rel="next" / rel="prev" links.
     */
    add_filter( 'rank_math/frontend/disable_adjacent_rel_links', '__return_true' );

    And here’s a guide to adding the filter to your website:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘deactivate the <link rel="next" href=" tag on my site’ is closed to new replies.