i have a wordpress blog and i want all links that arent of my domain to open in a new tab! how do i do this?
The simplest way would be to just append the target="_blank" tag to the links you want to open in a new tab. For example, <a href="http://www.google.com" target="_blank">Go to Google</a> would open up Google in a new window.
i am not going to do that manually! i refuse...there must be a way/code that you can put put in header or sumthin so that all external links open in new tab!
You ask for help but then you refuse to follow directions......as far as I know.....what the last guy posted is how you do it. Good old fashioned HTML tag editing.....
When writing an article, highlight the text in the editor, and click "insert link." A "insert / edit link" box will open up. In the "target" drop down menu, choose "open link in new window" and click ok. Pretty simple huh. Or, are you talking about links in comments?
no i meant in post...wow you really have to manually set every external link to open in new tab, i guess we havent come that far...
What fun would it be if all links opened in a new tab or window, and the next guy did not like it that way? Just because "you" want it a certain way does not mean the next person does. Personally, I like choices. There is no need in complaining just because "everything" does not go just like what you want it.
lol just asking a question...so all links i made in old post, i have to go back and edit them myself to open in new tab? i cant just put a code sumwhere?!?!
Add <base target="_blank"> between your <head> and </head> tags. This will set the default target for all links on the page to a new window.
How do you think HTML got started......I think people that create websites/blogs should be required to take a basic course in building websites.....you know what they teach? How to create a website using Notepad!!! Just make the changes already! Hint.....sometimes, its better to not have another window open....this forces the visitor to press Back on his/her browser to get back to your site.
You see......this guy knows HTML.....I actually forgot we could do that! Thanks for the reminder of the old fashioned HTML coding.
Try this http://www.inverudio.com/programs/WordPressBlog/NewTabWindowTargetBlankPlugin.php But make sure u don't have any cache plugin
I've been searching for this kind of wp plugin as well. Drupal has one as far as I remember. I don't use drupal anymore.
omg, thats exactly what i wanted! i just copyed and pasted that i the top of "single.php" and "main index.php" and it works fine! thx!
True, but what happens when the visitor closes the window =by mistake=. If I don't have the link open in another window, my site would be gone too. I set all my external links to open in a new window