[resolved] Make Pages Open In A New Window (5 posts)

  1. robobobo100
    Posted 5 years ago #

    Hey guys,

    In my navigation bar I have a "Subscribe" button. I want it to open up in a new window as there is no link for the reader to get back to my site after they subscribe. Is there anyway i can make that subscribe button open in a new tab/window? Thanks


  2. vtxyzzy
    Posted 5 years ago #

    Add ' target="_blank"' after the title="Subscribe":

    <a href="http://www.techinfo-4u.com/subscribe/" title="Subscribe" target="_blank">Subscribe</a>

  3. robobobo100
    Posted 5 years ago #

    No that won't work for me, everytime i create a new page it automatically adds a link to it in the navigation bar, I cant add that code to it, or at least i dont know where to

  4. Rev. Voodoo
    Volunteer Moderator
    Posted 5 years ago #

    looks like this will add target=_blank to wp_list_pages (which is what controls your auto page links)


  5. robobobo100
    Posted 5 years ago #

    Perfect worked a treat, thanks a bunch!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.