Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

target="blank" for all external links in posts


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Jan 17, 2010, 10:05 PM
ksmith101's Avatar
ksmith101
 
79 posts · Dec 2009
North Carolina, although Georgia (USA) is HOME
I need all references to external links in my post to open in a new page. I have multiple people set up as Authors and I don't want them to have to remember to add target="_blank" in the url. Is there a way to globally set this for posts?
__________________
Thanks, Kathy...always looking for feedback on this site...
http://www.wildandwonderfulphotography.com/blog
  #2  
Old Jun 29, 2011, 01:47 PM
rickheck
 
139 posts · Oct 2009
(bump..................)
  #3  
Old Jun 29, 2011, 02:44 PM
juggledad's Avatar
juggledad
 
22,187 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
a link that is part of the post text is not processed by the theme, it just calls the wordpress function 'the_content()' or 'the_excerpt()', so I think you wll have to find or code a plugin to examine the post content for any links then add that to the end.

A google search found Make all links target _blank plugin which may or may not help.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support

Last edited by juggledad; Jun 29, 2011 at 07:10 PM.
  #4  
Old Jun 29, 2011, 03:22 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
I just tested and it looks like if you just put the following in HTML Inserts: Header it does the trick.
HTML Code:
<base target=”_blank” />
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Jun 29, 2011, 06:19 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by STB
correct me if im wrong, but think that would also open *all* links in a new window
Yup... sure does. Thanks for the link.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #6  
Old Jun 29, 2011, 07:12 PM
juggledad's Avatar
juggledad
 
22,187 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
STB, if you read my post, you will notice that I said
Quote:
so I think you wll have to find or code a plugin to examine the post content for any links then add that to the end.

A google search found Make all links target _blank plugin which may or may not help.
__________________
Give a person a solution, you fix one issue, teach a person how to solve their problem you enable them forever.
Juggledad | Forum Moderator/Support
  #7  
Old Jun 29, 2011, 10:22 PM
lmilesw's Avatar
lmilesw
 
10,085 posts · Jul 2009
Central New York State USA
Quote:
Originally Posted by STB
that page talks about making *all* links target _blank
Yes, but the plugin they developed was created to "fix" the issue of internal links and only handle external links like the plugin you pointed to.
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Static text/banner image before posts in "posts page" verbalicious Page & Category Menu Bars 14 Nov 12, 2010 05:27 AM
How to select "Only Exerpts"/"Full Posts" for certain post? shus Center area post/pages 4 Jan 19, 2010 01:41 PM
"About" row, footer links, sidebar background, logos in a line ctenos Header configuration & styling 1 Jul 28, 2009 01:21 PM
request: please add "links.php" page template. dhani Atahualpa 3 Wordpress theme 0 May 22, 2009 03:36 AM
Big Trouble getting "Admin Links Widget" to work Shepherd Jim Plugins & Atahualpa 18 May 1, 2009 05:55 PM


All times are GMT -6. The time now is 05:56 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.