• aaronsho

    (@aaronsho)


    What do I need to modify so that when someone clicks on the title of a post single.php opens in a new / it’s own window?

Viewing 1 replies (of 1 total)
  • Michael

    (@alchymyth)

    edit index.php (or what ever file displays the front page) and find the code of the post title:
    example from default theme:
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

    add ‘target=”_blank” ‘ to it like so:
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" target="_blank"><?php the_title(); ?></a></h2>

    http://www.w3schools.com/tags/att_a_target.asp

Viewing 1 replies (of 1 total)

The topic ‘How Does One Open Single Posts In New Window’ is closed to new replies.