rel next and rel prev links

#67794
  • Resolved Peter W.
    Rank Math pro

    I want to remove the next- and prev-links which are automatically inserted into Sourcecode, because they slow down my side dramatically. Is there any filter or can you provide one?

    Regards
    Peter

Viewing 4 replies - 1 through 4 (of 4 total)
  • Alberto
    Rank Math business

    Hello,

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

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

    Looking forward to helping you. Thank you.
    ​​​​​​​

    As simple!

    Thank you very much. That speeded my site up.

    Regards
    Peter

    done!

    Alberto
    Rank Math business

    Hello Peter,

    We are super happy that this resolved your issue. 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 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this ticket.