WordPress.org

Ready to get started?Download WordPress

Forums

SEO Smart Links
How to make it optional to convert links to "nofollow" (1 post)

  1. 127.0.0.1
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic