Links in new tabs/windows
-
Hi all.
I wanted to make all the links i put in my blog, whether in the blogroll or within a blog, come up in a new window or tab. This doesn’t automatically happen. Someone has given me the code, but rather then go through everything changing the code, is there an option within wordpress where i can select for this to happen?
Many thanks,
Tom -
For the blogroll you just have to choose the option target = _blank for each link you add; for the rest, you have to insert the attribute target=”_blank” manually in each link.
The reason why there’s no central option for this is, that these attributes for the “a” tag actually are leftovers from the time when frames where a modern technology, so you needed the ability to give a target frame for links. Today frames are almost totally disappeared, and a basic principle of usability is to let the user decide himself how he wants to navigate in your site, not imposing popups and so on. The user has a context menu and should be free to decide whether he wants to open a new window, a new tab or continue his navigation in the same window. Users will appreciate it and your blog will validate.
-
- The topic ‘Links in new tabs/windows’ is closed to new replies.