Remove "nofollow" for website links

This topic contains 4 replies, has 3 voices, and was last updated by  Stiofan O’Connor 6 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #466786

    Janet Slinkard
    Full Member
    Post count: 36

    Hi, I can’t seem to find any documentation on how to remove the “nofollow” for website links in GeoDirectory V2. I tried the filter for GDV1 but it didn’t work. Please help.

    #466787

    Janet Slinkard
    Full Member
    Post count: 36

    /*This is what I added to functions.php/*
    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’);

    #466788

    Janet Slinkard
    Full Member
    Post count: 36

    Update: It worked on standard listings, but not paid listings :/

    http://dev.finditsober.com/labs

    #466810

    Kor
    Moderator
    Post count: 16516

    Hi Janet,

    Thanks for your post. Kindly share your WP admin access here in private reply and I’ll forward this to a developer.

    Thanks!

    #466923

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    If you want to remove this feature you could try:
    (the 15 is important, its the priority)

    add_filter('geodir_custom_field_output_url','gd_remove_rel_nofollow_from_url',15);

    Stiofan

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

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

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount