Support » Fixing WordPress » Open Blog Post in a New Broser Tab

  • Good morning,

    How can I set the titles of every post we ever write on our blog, to open automatically in a new tab when clicked?

    We will like to have this as a default setting.

    I believe certain code needs to be added somewhere.

    Your help is greatly appreciated.

    Thank you so very much.

    -Sincerely, Pastor Estrada

Viewing 6 replies - 1 through 6 (of 6 total)
  • Add target="_blank" to the href in your template so it looks like:

    <a href="<?php the_permalink(); ?>" target="_blank">

    Oh, wonderful! Thank you so much Troy. And what is the name of the file that the code goes in? Could you please also tell me the line number? And if there was to be a specific place where it needs to be could you also please provide and example of where it should go?
    We are not very knowledgeable when it comes to coding.

    Thank you so much for your attention and time!
    -Sincerely, Pastor Estrada

    Without having a link, or even seeing the original theme file code it’s impossible to tell you exactly what to do.

    I am not sure if I understood…
    You mean I should provide a link to the blog?

    We are using a theme called “Delegate” …from Woothemes!

    Are you saying there is no way to find out where the code:

    "<a href="<?php the_permalink(); ?>" target="_blank">"


    Because the Delegate theme from WooThemes is a premium theme that you purchased, I would recommend you contact them for support.

    Without having access to the theme itself, all I can tell you, based on what I see in the source code, is that the <?php the_permalink(); ?> you want is located not far after <h2 class="title"> on either a home.php, front-page.php or index.php file, depending on how the theme was built.

    ok, that is reasonable.
    Thank you so much again for your attention and time Troy

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Open Blog Post in a New Broser Tab’ is closed to new replies.