Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.
In this case, you may use and customize this filter to remove the rel=next
in the page’s source code:
/**
* 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.
Thank you.
Hello, thanks for the reply, but the filter didn’t show up. These pages are of category type. I used the first method, using the Code Snippets Plugin, and ran the snippet everywhere.
UPD: I reset the site cache and rel=”next” is gone! Thank you for your help! I would also like to know if it is possible to add rel=”next” or rel=”prev” to the plugin editor.
Hello,
It is not recommended that you should be using the plugin editor to edit plugin files. This is because any changes you make directly into the plugin’s core file will be overridden when you update the plugin.
The recommended method is to make changes through the child theme functions.php file.
We hope that helps, and please don’t hesitate to get in touch if you have any other questions.
Thank 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.