Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   RSS, Feeds & Subscribing (http://forum.bytesforall.com/forumdisplay.php?f=18)
-   -   Open RSS in New Window? (http://forum.bytesforall.com/showthread.php?t=2314)

adum Jul 8, 2009 11:59 AM

Open RSS in New Window?
 
Hey,

I currently have the RSS Posts and E-mail buttons actived above the Search bar and they work great, but would like them to open in new windows when clicked upon. Where in the code can I edit to add target="_blank"? I am using 3.2 btw.

Thanks!

-Adam

juggledad Jul 8, 2009 01:32 PM

bfa_header_config.php about line 111-127

letienvy Jul 10, 2009 06:04 PM

PHP Code:

// COMMENT Feed link
        
if ( $bfa_ata['show_comments_icon'] == "Yes" ) { 
            
            
$logo_area .= '<a class="comments-icon" '
            
            if ( 
$bfa_ata['nofollow'] == "Yes" ) { 
                
$logo_area .= 'rel="nofollow" '
            } 
            
            
$logo_area .= 'href="' $bfa_ata['bloginfo_comments_rss2_url'] . '" title="' 
            
$bfa_ata['comment_feed_link_title'] . '">' $bfa_ata['comment_feed_link'] . '</a>';
            
        } 

PHP Code:

// COMMENT Feed link
        
if ( $bfa_ata['show_comments_icon'] == "Yes" ) { 
            
            
$logo_area .= '<a class="comments-icon" '
            
            if ( 
$bfa_ata['nofollow'] == "Yes" ) { 
                
$logo_area .= 'rel="nofollow" '
            } 
            
            
$logo_area .= 'href="' $bfa_ata['bloginfo_comments_rss2_url'] . '" title="' '"target="_blank""'
            
$bfa_ata['comment_feed_link_title'] . '">' $bfa_ata['comment_feed_link'] . '</a>';
            
        } 

the sample for "Feedburner Email link" and "POSTS Feed link"

maksev Aug 13, 2009 02:36 PM

I was able to do Comment and POst feed, but i dont know where to put target blank for Feedburner


// Feedburner Email link
if ( $bfa_ata['show_email_icon'] == "Yes" ) {

$logo_area .= '<a class="email-icon" ';

if ( $bfa_ata['nofollow'] == "Yes" ) {
$logo_area .= 'rel="nofollow" ';
}

$logo_area .= 'href="http://' . ($bfa_ata['feedburner_old_new'] == 'New - at feedburner.google.com' ?
'feedburner.google.com/fb/a/mailverify?uri=' : 'www.feedburner.com/fb/a/emailverifySubmit?feedId=') .
$bfa_ata['feedburner_email_id'] . '&amp;loc=' . get_locale() . '" title="' .
$bfa_ata['email_subscribe_link_title'] . '">' . $bfa_ata['email_subscribe_link'] . '</a>';

}

where do i place target here?

Flynn Aug 15, 2009 04:42 PM

You can put it here

$logo_area .= '<a target="_blank" class="email-icon" ';

Thomas Jan 12, 2010 12:02 PM

I'd like to just add the target="_blank" to the html code for the link to subscribe to feedburner via email that I have in the logo area. Can't I do that without all of this PHP? Can't I just find that line of HTML code and just add the target="_blank" manually?

In firebug I can see the html code I want to edit but I'm not sure where that html code is - can you guys tell me what file it's in? I thought maybe css.php but when I did a ctrl F search for "feedburner" there was only one hit and it wasn't the HTML code.

Thanks!
Thomas

juggledad Jan 12, 2010 06:19 PM

the code that builds the link is in bfa_header_config.php after line 202 (version 3.4.4)


All times are GMT -6. The time now is 06:38 AM.

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