Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

target="blank" for all external links in posts


  #1  
Old Jan 17, 2010, 10:05 PM
ksmith101's Avatar
ksmith101
 
79 posts · Dec 2009
North Carolina, although Georgia (USA) is HOME
target="blank" for all external links in posts

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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
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,176 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,176 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
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Jun 29, 2011, 10:22 PM
lmilesw's Avatar
lmilesw
 
10,176 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 03:52 PM.


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