Title: adding base target=&quot;_blank&quot; / to php
Last modified: August 19, 2016

---

# adding base target="_blank" / to php

 *  [Claire](https://wordpress.org/support/users/caphaitimemoryprojectorg/)
 * (@caphaitimemoryprojectorg)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/)
 * Hi guys! I am trying to make it so the RSS feed I have on each page opens to 
   a new tab. It seems that I will have to add “<base target=”_blank” /> to each
   page individually, unless there is a plug-in that can do it for me, or a way 
   to add it to the page template. Here’s the [page.php](http://pastebin.com/j0Ej2d4D)
 * Could anyone tell me where to place to code in the page template so that it doesn’t
   crash my site?
 * Thanks!
    Claire haitimemoryproject.org

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/#post-1782897)
 * > I am trying to make it so the RSS feed I have on each page opens to a new tab.
 * Why? An RSS feed isn’t even meant to be read by/viewed via a web browsers.
 *  Thread Starter [Claire](https://wordpress.org/support/users/caphaitimemoryprojectorg/)
 * (@caphaitimemoryprojectorg)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/#post-1782926)
 * it’s a yahoo news RSS feed that opens up recent news articles. i want the links
   in the RSS feed to open to new tabs.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/#post-1782937)
 * You can’t control how another the links on an RSS feed open without getting into
   some pretty heavy RSS/XML parsing.
 *  Thread Starter [Claire](https://wordpress.org/support/users/caphaitimemoryprojectorg/)
 * (@caphaitimemoryprojectorg)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/#post-1782945)
 * Well it seems like if I just add “<base target=”_blank” />” at the top of each
   page it does the trick. but i want to know how to do it automatically instead
   of manually.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘adding base target="_blank" / to php’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Claire](https://wordpress.org/support/users/caphaitimemoryprojectorg/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/adding-base-target_blank-to-php/#post-1782945)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
