head: remove rel=”next” link tag

#149989
  • Resolved H
    Rank Math free

    Hi!
    How can i remove the <link rel=”next” href=”[MYDOMAIN]/page/2″ /> tag from the header?
    I don’t have any subpages enabled on my website, so these are useless for me.

    Thank you for a hint πŸ‘

Viewing 3 replies - 1 through 3 (of 3 total)
  • Anas
    Rank Math business

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience caused.

    You can disable this tag using the following code on your theme’s functions.php file:

    /**
     * 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' );

    I hope this helps. Looking forward to helping you.

    H
    Rank Math free

    Thank you very much – fastest answer ever πŸ˜‰ – and works ✨ Have a great day & stay safe!

    Anas
    Rank Math business

    Hello,

    We are super happy that your issue is resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

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

The ticket ‘head: remove rel=”next” link tag’ is closed to new replies.