WordPress.org

Ready to get started?Download WordPress

Forums

Open Blog Post in a New Broser Tab (7 posts)

  1. CCMI
    Member
    Posted 2 years ago #

    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

  2. Troy Chaplin
    Member
    Posted 2 years ago #

    Add target="_blank" to the href in your template so it looks like:

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

  3. CCMI
    Member
    Posted 2 years ago #

    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

  4. Troy Chaplin
    Member
    Posted 2 years ago #

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

  5. CCMI
    Member
    Posted 2 years ago #

    I am not sure if I understood...
    You mean I should provide a link to the blog?
    http://www.ChristCompassion.Org/outdoors/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">"

    goes?

  6. Troy Chaplin
    Member
    Posted 2 years ago #

    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.

  7. CCMI
    Member
    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic