Wordpress Rss Widget in New Window Solutions : Why is Wordpress opening new windows?


1 Votes, Rating: 51 Star2 Stars3 Stars4 Stars5 Stars

Tags:

Wordprss How to open Rss Widget link in New Window ??

I have seen in many post on many sites.. if you search in google by this keyphase
you will be found countless post, where users asking same problem.

and most of fourm and blog has not any reply till far. so i had decided to fix it faster
i have found the solution now, but you need to do some change in your coding..

please do these changes

wp-includes/widgets.php

find these codes

if ( $link == ” ) {
 echo “<li>$title{$date}{$summary}{$author}</li>”;
 } else {
 echo “<li><a class=’rsswidget’ href=’$link’ title=’$desc’>$title</a>{$date}{$summary}{$author}</li>”;
 }

replcae with this

if ( $link == ” ) {
 echo “<li>$title{$date}{$summary}{$author}</li>”;
 } else {
 echo “<li><a class=’rsswidget’ href=’$link’ title=’$desc’ target=’_blank’>$title</a>{$date}{$summary}{$author}</li>”;
 }

and upload on your server back and check after remove your cache.
And it will work fine..
remember if this works when you use widget for rss feed display

enjoy :)

Share/Save/Bookmark

2 Responses to “Wordpress Rss Widget in New Window Solutions : Why is Wordpress opening new windows?”

  1. Smolin says:

    Теория золотая. Результатами поставленных экспериментов может кто-то похвастаться?

  2. MediaChandlerMarketing says:

    Thanks so much for this cool info! I was unable to to find wp-includes/widgets.php … I am guessing my theme names it different.. I am using a news theme with many.. just plain hard to figure out!

Leave a Reply


CSS (Design) - TOP.ORG