Hello, I’m sorry to hear that you’re experiencing issues with Rank Math adding ‘rel=…’ to your hyperlinks. To remove the ‘rel=…’ attribute from your hyperlinks, you can add the following code snippet to your theme’s functions.php file:
/**
* Filter to remove `rank-math-link` class from the frontend content links
*/
add_filter( 'rank_math/link/remove_class', '__return_true' );
You can navigate to WordPress Dashboard → Appearance → Theme File Editor (for Classic Theme) or WordPress Dashboard → Tools → Theme File Editor (for Block Theme) and click on functions.php
or rank-math.php
from theme files. Make sure that you are editing the child theme for the safety and smooth running of the website.
After adding the code snippet, click Update File to reflect the changes.
If you have any further questions or need additional assistance, please feel free to reach out to our dedicated support team here. We are available 24/7 and will be happy to help you.
Sources:
Remove “rank-math-link” Class from All Outbound Links » Rank Math
Stop Adding rel=”ugc” to Links in Comments » Rank Math
How to Disable All Rank Math Generated SEO Tags » Rank Math
How to NoIndex Paginated Pages » Rank Math
How to Completely Uninstall Rank Math From Your Website » Rank Math
Here is my HTML:
Veed
Here is the page, so you can see the problem:
https://staging.digino.org/ai-tools
<a href="https://staging.digino.org/ai-tools/veed/">
<img src="https://staging.digino.org/wp-content/uploads/2023/12/veed-logo.png" alt="AI Tools" style="width:50px;height:50px;vertical-align:middle;"> Veed
</a>
Hello,
The hyperlink you have shared from that page does not contain any rel attribute like you have previously shared. Also, Rank Math is currently activated on your site.
Could you please confirm if you still need help with the hyperlink issue?
If you want to share images, you can upload screenshots using this tool and add the link here.
Looking forward to helping 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.