• Claire

    (@caphaitimemoryprojectorg)


    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

    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)
  • 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

    (@caphaitimemoryprojectorg)

    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.

    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

    (@caphaitimemoryprojectorg)

    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.