WordPress.org

Ready to get started?Download WordPress

Forums

WP External Links (nofollow new window seo)
[resolved] [Plugin: WP External Links] Any way to set up an exception? (3 posts)

  1. tbadorrek
    Member
    Posted 2 years ago #

    Is there any way to set up an exception for WP External Links to ignore external links from a certain URL? I've got sister websites and subpages that I want to link to but do not want them to receive external link icons or open in another window.

    Thanks

    http://wordpress.org/extend/plugins/wp-external-links/

  2. tbadorrek
    Member
    Posted 2 years ago #

    I was able to figure out a solution that at least works for my subdomains.

    I edited class-wp-external-links.php as follows:

    Do a search for:
    baseUrl: '<?php echo get_bloginfo( 'url' ) ?>'

    And replace with:

    baseUrl: 'YOUR TOP DOMAIN HERE (i.e. google.com)'

    Do a search for:
    strpos( $href, 'strtolower( get_bloginfo( 'url' ) )' ) === FALSE

    And replace with:
    strpos( $href, 'YOUR TOP DOMAIN HERE (i.e. google.com)' ) === FALSE

    That did the trick for me.

  3. freelancephp
    Member
    Plugin Author

    Posted 2 years ago #

    Although you already solved the problem yourself, in the new version it is possible to exclude (ignore) links of another (sub)domain.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic