The Open in New Window Plugin Plugin uses JavaScript to target external links to a new browser window, leaving your blog page open.
Since it uses javascript, it targets more links than using a plugin that filter pages and rewrite the link. The plugin will find many links generated in scripts or pasted into posts and comments.
Due to the limitations of javascript it will not be able target links in iframes such as Adsense and some other affiliate links.
Download
Latest version: Download Open in New Window Plugin v2.0 [zip]
Installation
- Download the plugin.
- Upload the plugin to your wp-content/plugins directory.
- Activate the plugin.
FAQ
Changelog
2.0
1.9
1.8
1.7
1.6
1.5
1.4
1.3
1.2
- Added support for links with url of javascript: so as not to open in new window.
1.1
- Added onload event so as not to miss a few other links that might be also loaded in onload. = 1.2 =
- Added support for links with url of javascript: so as not to open in new window.
1.0
- initial release
Hi there,
Thanks for all you do. I installed 1.8 of your open in new window plugin; however, it was doing something funky. Whenever I hovered over a menu link or the masthead image, it would pop up some gray boxes. With menu items, the box would say the name of the menu item. With the masthead image, it would have a large gray box saying randomizemastheadimage or something. I disabled all plugins and pinpointed this plugin as the culprit. I would love to keep using the plugin; however, the gray boxes obstructed the view of menu items, especially branched menu items. Just thought I’d bring it to your attention.
I released another version. This does not update the title parameter of the link tag, if there is an image in the link. The title is displayed when you hover over the image.
By the way, titles are a big deal in SEO so you should tweak your theme and give all the image links, like the banner, a title parameter. It will display when someone hovers over the image, but it is also used by the search engines as link keywords if there is no text. This is very important when you use image links anywhere.
Keith
Hi Keith,
I just installed and activated your “Open in New Window” plugin and it works fine for external links.
But the problem is that now my home button and a few of the other buttons in my menu across the top are also opening in a new window. Can you please help me fix this?
Thank You for your efforts
Richard
Richard,
When the plugin is loaded it sees that you are doing it from http://www.kitchensdior.com.au, but the link is from kitchensdior.com.au. This is an external website.
To make matters worse, you have an htaccess that redirects everything to www.
If you want to use www as the main subdomain you must change all of you links to www. This makes sense in many ways, especially for SEO. Google will by default see these as two separate sites. You want to have only one site.
Keith
Thanks for the fast response Keith!
The issue has been resolved.
Thanks again!