How to have Widgets open Links in New Window
-
Hi Guys,
Check out our blog – http://www.naioppulse.org.
On the right sidebar I have widgets (RSS and Twitter) which contain links to outside sources. How do I get those links to open in a new (_blank) window? I’d like them to open in new windows so they don’t have to click “back” to return to my blog.
I know the target=_blank code, but I have no idea where to put it!
Thank you in advance,
The blog I need help with is: (visible only to logged in users)
-
Here is an example of using target blank:
<a href="Link_URL_Here" target="_blank">Text for link.</a>With an image link, you would put it in the same place right after the href URL .
-
Thanks for the quick response. Where would I input that code? These links are generated from an RSS widget on the sidebar that automatically inputs the links. I somehow need to tell wordpress that any external link generated from any RSS or Twitter widgets need to open in a new window.
-
I’m sorry, I misread your original query.
You cannot do that with specific-purpose widgets like the RSS widget, or the links widget, or the categories widget, only with the general purpose text widget where you are actually writing the links.
-
Thanks for the response.
That’s a major limitation on the part of wordpress.com. It’s possible using plug-ins available at wordpress.org, so why the limitation here?
-
WordPress.COM has a lot of limitations compared to .ORG. The thing is though that even .ORG doesn’t have that capability in the core. It has to be added via a plugin.
Most of the restrictions here are due to security concerns. This is a multi-user version of wordpress which means we all share the same underlying theme and wordpress files, and any bad code or security hole introduced by a blogger – intentional or not – could bring down the entire system. There are a lot of very badly written plugins, themes and widget code out there – some of it intentional – so .COM is rightly concerned in my opinion given the structure of this system.
If this is a real thorn in your side, get a domain name, hire a web host and go self-hosted and you can do virtually anything you want (within the TOS of the web host).
- The topic ‘How to have Widgets open Links in New Window’ is closed to new replies.