1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WP Help Please (re: Widgets and RSS)

Discussion in 'WordPress' started by gemini181, Nov 15, 2008.

  1. #1
    Hi,

    Using the Wordpress widgets for RSS feeds in the sidebar.
    How can I make all those links be "target=_blank" ?
    Would the change be made in widgets.php, and anyone know which line??

    Thank you


    EDIT:
    :) Found it already...

    In widgets.php
    Find
    echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
    Replace with
    echo "<li><a class='rsswidget' href='$link' target='_blank' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";

    FYI: I was using Notepad, so don't have a line number.
    It's ~3/4 of the way down the page.


    /That was easy...
    SEMrush
     
    gemini181, Nov 15, 2008 IP
    SEMrush