By default, WordPress RSS widget doesn’t open new window when user click on the link. I’ve been searching for the solution for quite a while and most of the solution refer to editing the wordpress core file (wp-includes/default-widgets.php). Editing core file are not a permanent solution, whenever there is wordpress update, it will write off your modification. At the end, i decided to use jQuery to solve the problem.
To open WordPress rss link in new window, follow the steps below:-
Advertisements
- Login to your WordPress admin panel, Appearance -> Editor
- Click on for header.php at the right sidebar
- Add the content below between the head tag
<script type="text/javascript"> jQuery('a.rsswidget').click(function() { jQuery(this).attr('target', '_blank'); }); </script>
* make sure you have jquery loaded
- Once done, update the file and you may refresh your front page.
- Now you may click on rss link and it should be open in new window!
Related posts:
jQuery: disable autoscrolling to top when click on anchor
How to check Zimbra Version without ssh access?
How to upload file in Symfony 1.4
MySQL 5.5 PDO::__construct(): The server requested authentication method unknown to the client [mysq...
How to sort drop down - Admin Generator - Symfony 1.4
How to remove #more tag in WordPress
How to shrink worksheet for printing in Calc - OpenOffice
How to import contacts from Mac to Nokia N900
Share this with your friends:-