View Full Version : Resolved RSS Display Boxes - Need Links To Open In New Tab

03-21-2011, 09:04 PM
1) Script Title: outputbody.php

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/rssdisplaybox_ref.htm

3) Describe problem:I have the installed version on my server and it is functioning flawlessly. What I need is all of the links generated by RSS Display Boxes to open in a new tab and I'm not sure if the "attr. target _blank" function can be used and if it can where or how to place it. Simple Pie doesn't seem to have a function for this so i'm hoping to get some insight here.



03-22-2011, 12:37 AM
I figured out where i needed to place the code in order for all of my RSS feeds to open in a new tab.

Open the "outputbody.php and edit the following into any of your template's "rsstitle" div class.

original code:

<div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>><?php echo $item->get_title(); ?></a></div>

Changed code:

<div class="rsstitle"><a href="<?php echo $item->get_permalink(); ?>"target="_blank"><?php echo $item->get_title(); ?></a></div>