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

  1. tbadorrek
    Posted 3 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.



  2. tbadorrek
    Posted 3 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
    Plugin Author

    Posted 3 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

  • WP External Links (nofollow new window seo)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic