Rankmath adding ‘rel=…’ to my hyperlinks

#696983
  • Resolved Anonymous
    Rank Math free

    Rankmath is adding ‘rel=…’ to my hyperlinks. I am using WPDataTables plugin using a googlesheet as a data source. I have HTML in my sheet with a hyperlinked image and text. This then displays through my WPDataTable. When Rankmath is activated it shows the ‘rel=…’. How do I remove this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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

    Anonymous
    Rank Math free

    Here is my HTML:


    AI Tools Veed

    Here is the page, so you can see the problem:

    https://staging.digino.org/ai-tools

    Anonymous
    Rank Math free
    <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.

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

The ticket ‘Rankmath adding ‘rel=…’ to my hyperlinks’ is closed to new replies.