Hello, we understand your concern. To remove the “ tag from the home page only, you can use a code snippet. Here’s the code snippet you can use:
add_filter( 'rank_math/frontend/remove_next_rel_link', function( $remove ) {
if ( is_front_page() ) {
return true;
}
return $remove;
});
You can add this code snippet to your child theme’s functions.php or rank-math.php file. Please note that modifying code requires caution and technical knowledge. If you need further assistance or have any questions, feel free to reach out to our support team. We’re here to help!
Sources:
Removing Schema From Your Posts & Pages » Rank Math
How to NoIndex Paginated Pages » Rank Math
Remove Organization Schema from Your Website » Rank Math
Why Google Displays URL Instead of Site Name in SERP? » Rank Math
The code that the bot gave did not work
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
Please try to use the following filter on your website and see if that works for you:
add_filter( 'rank_math/frontend/disable_adjacent_rel_links', function( $remove ) {
if ( is_front_page() || is_home() ) {
return true;
}
return $remove;
});
Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
It seems that you already marked this ticket as “Resolved”.
Can you confirm if the code shared by my colleague worked for you or do you still need our assistance regarding this issue?
Looking forward to helping you.
Thank you.
Hello,
We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.