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 »

[SOLVED] Open syndicated posts in new window

Old Jan 30, 2010, 02:47 PM
11 posts · Jan 2010
I was searching the forum how to get syndicated (from rss feeds like with feedwordpress plugin) posts to open in a new window because they are external. All i found was somwthing about javascripts. So i decided to explore the atahualpa code a bit and found a solution i would like to share.

This is for version 3.45:

Go to /wp-content/themes/atahualpa345/functions and open bfa_post_parts.

Around line 53 you will finde this code:

if( !is_single() AND !is_page() ) { ?>
   <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php 
Replace it with:

if( !is_single() AND !is_page() ) { ?>
   <a href="<?php the_permalink() ?>" rel="bookmark" <?php if (is_syndicated()): ?>target="_blank"<?php endif; ?> title="Permanent Link to <?php the_title(); ?>"><?php 
The trick is done here:
<?php if (is_syndicated()): ?>target="_blank"<?php endif; ?>
Now all your syndicated posts will open in a new window if you click at the headline. All other posts will still open in the same window.



PS.: maybe this would be a good feature for future atahualpa version. or even make it an option you can choose from in the theme options.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open RSS in New Window? adum RSS, Feeds & Subscribing 6 Jan 12, 2010 06:19 PM
Can links in footer open in a new window? junebob Post-Kicker, -Byline & -Footer 0 Dec 10, 2009 10:00 AM
Open RSS Feed in new window Ber|Art RSS, Feeds & Subscribing 0 Oct 13, 2009 06:15 AM
Make external links open in a new window clarge Header configuration & styling 1 Aug 9, 2009 03:00 PM
How to cause Page menu items to open in same window? joe hark Page & Category Menu Bars 1 Mar 2, 2009 03:49 AM

All times are GMT -6. The time now is 07:25 AM.

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