rel=”noreferrer”

#141287
  • Resolved Ryu Smith
    Rank Math free

    Rankmath seems to add rel=”noreferrer…” to every link. Oddly the settings for Rankmath has a nofollow option on every link, but not a no noreferrer option.

    I want sites to know who referred them for not only affiliates but also for site relationships.

    How do I turn this off?

    I tried to change the noreferrer with this in functions.php, but it is still added through the rank math class link

    function my_targeted_link_rel($rel_values) {
    return ‘noopener’;
    }
    add_filter(‘wp_targeted_link_rel’, ‘my_targeted_link_rel’,999);

Viewing 3 replies - 1 through 3 (of 3 total)
  • I found a clunky way to remove it, but I think that RankMath should just have a check box like the nofollow option.

    add this to your functions.php for anyone else interested:

    function my_formatter($content) {
    $replace = array(“noreferrer ” => “” );
    $new_content = strtr($content, $replace);
    return $new_content;
    }
    add_filter(‘the_content’, ‘my_formatter’, 999);

    Anas
    Rank Math business

    Hello,

    We’re glad that your issue is resolved.

    You can also use https://wordpress.org/plugins/remove-noreferrer/ this plugin to remove rel=”noreferrer”

    I hope this helps. Looking forward to helping you.

    Hello,

    We wanted to add that Rank Math does not add the noreferrer rel tag to your links. It might be coming from somewhere else.

    Hope that helps.

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘rel=”noreferrer”’ is closed to new replies.