Trouble Removing rel="nofollow"

This topic contains 3 replies, has 2 voices, and was last updated by  Alex Rollin 5 years, 8 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #444108

    Doug Rooney
    Expired Member
    Post count: 22

    I need to Remove the rel=”nofollow” from the website link, the FB link and Twitter link in my listings. I found a thread from 2016 instructing to add the following code to the Active Child theme’s functions.php. I did that. I am Using SEM Rush for SEO and SEMRush Crawls say that the links in Question are still nofollow.

    function gd_remove_rel_nofollow_from_url($html) {
    $html = str_replace(‘rel=”nofollow”‘, ”, $html);
    return $html;
    }
    add_filter(‘geodir_show_geodir_website’, ‘gd_remove_rel_nofollow_from_url’);
    add_filter(‘geodir_show_geodir_twitter’, ‘gd_remove_rel_nofollow_from_url’);
    add_filter(‘geodir_show_geodir_facebook’, ‘gd_remove_rel_nofollow_from_url’);

    #444109

    Alex Rollin
    Moderator
    Post count: 27815

    You can check to make sure the field names match.

    Let us know how it goes

    Please send a link to the page so we can see the links you are working on.

    #444111

    Doug Rooney
    Expired Member
    Post count: 22

    I SEE. The code IS working on Links that haven’t been customized. Its not working on my custom links. OK, I got this…

    Thank You
    DR

    #444151

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent!

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket