Results 1 to 7 of 7

Thread: remove nofollow for dofollow

  1. #1
    Thread Starter
    maye's Avatar
    Join Date
    Nov 2012
    Location
    France
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    remove nofollow for dofollow

    Hello
    I want to remove and transform nofollow links in posts and comments dofollow
    I tried pulgins as dofollow, KeywordLuv and other
    I tried this code:
    gkp_remove_nofollow function ($ text) {
    $ text = preg_replace ("/ (<a[^>] * [^ \ s]) (\ s * nofollow \ s *) / i", "$ 1", $ text);
    $ text = preg_replace ("/ (<a[^>] * [^ \ s]) (\ s * rel = [\" \ '] \ s * [\ "\']) / i", "$ 1" , $ text);
    return $ text;

    But nothing works, links in psotes are pink and not blue!
    Please tell me if there is a method or code to remove the nofollow ads and comments
    thank you

  2. #2
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    Maybe this link will help you.

    I moved your thread to the WordPress General Discussion forum.

  3. #3
    Thread Starter
    maye's Avatar
    Join Date
    Nov 2012
    Location
    France
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dimitris View Post
    Maybe this link will help you.

    I moved your thread to the WordPress General Discussion forum.
    Hello,
    Solutions (code and pulgin) are also proposed for the comments and it does not work for ads, for example, the links in the fields: description, url .. remain nofollow

  4. #4
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    In which page do you see the nofollow? Could you some examples please?

  5. #5
    Thread Starter
    maye's Avatar
    Join Date
    Nov 2012
    Location
    France
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by dimitris View Post
    In which page do you see the nofollow? Could you some examples please?
    hello,

    Here is an example of an ad with fields "url" nofollow

    exemple.jpg

  6. #6
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    I found a function that adds the nofollow attribute in

    'classipress/includes/appthemes-functions.php'

    Code:
    function appthemes_make_url_clickable($matches) {
        $url = $matches[2];
        $url = esc_url($url);
        if (empty($url))
    		return $matches[0];
        return $matches[1] . "<a target=\"_blank\" href=\"$url\" rel=\"dofollow\">$url</a>";
    }
    You can edit it directly or use a child theme function.

  7. #7
    Thread Starter
    maye's Avatar
    Join Date
    Nov 2012
    Location
    France
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I searched in many file the nofollow but not in appthemes-functions.php!
    this is now resolved Big thank you

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. nofollow links
    By bigvibes in forum Report Vantage Bugs (Legacy)
    Replies: 14
    Last Post: September 28th, 2012, 11:56 PM
  2. Nofollow to pagination url
    By bartvriend in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: October 27th, 2011, 05:15 AM
  3. [MOD NEEDED] Have all outbound links as nofollow?
    By jlei1989 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: May 17th, 2011, 07:58 AM
  4. Post links 'nofollow'?
    By ssmedia in forum Report ClassiPress Bugs
    Replies: 8
    Last Post: February 10th, 2011, 02:45 PM