Support » Plugin: SEO Smart Links » [Plugin: SEO Smart Links] How to make it optional to convert links to "nofollow"

  • 127.0.0.1

    (@127001-1)


    Hello there,

    As you may know, this plugin convert all your normal links (inside posts) to nofollow links.

    What I want to do is to make some links dofollow, by targeting it over a custom attribute (such as style=”follow”)

    You will find this replacement inside source:

    if ($options[‘nofolo’])
    $result = preg_replace(‘%<a(\s+.*?href=\S(?!’ . $host . ‘))%i’, ‘<a rel=”nofollow”\\1’, $result);

    I don’t want a link to be replaced if it contains style=”folllow” attribute. So I will use this attribute on links those I want to be dofollow.

    How should I modify this regexp?

    http://wordpress.org/extend/plugins/seo-automatic-links/

  • The topic ‘[Plugin: SEO Smart Links] How to make it optional to convert links to "nofollow"’ is closed to new replies.