How to open syndicated RSS in new (blank) window
-
I was searching the forums to find out how to get syndicated posts (rss feeds from the feedwordpress plugin) to open in a new window. They are all external links and I would prefer to keep my users on the site.
I found this interesting snippet and wondered if someone could help me to apply it to the standard BuddyPress theme?
The example it gives is for a WordPress theme from Atahalpa.
In that theme you need to go to /wp-content/themes/atahualpa345/functions and open bfa_post_parts.
Around line 53 you will find (ignore the hash marks):
# if( !is_single() AND !is_page() ) { ?>
# <a href="” rel=”bookmark” title=”Permanent Link to “><?php
# }
#You must replace it with:
# if( !is_single() AND !is_page() ) { ?>
# <a href="” rel=”bookmark” target=”_blank” title=”Permanent Link to <?
# php the_title(); ?>”><?php
# }
#Apparently the magic ingredient is:
# target=”_blank”
The author claims that on that theme all syndicated posts will open in a new window when clicked on the headline. All other posts will still open in the same window.
Question is, how can I make it work in BuddyPress?
- The topic ‘How to open syndicated RSS in new (blank) window’ is closed to new replies.