Support » Fixing WordPress » Simple PHP

  • Would someone be so kind as to tell me how to get the facebook share code below to OPEN IN A NEW WINDDOW?

    <div class="ep_facebook"><a> Facebook" href="http://facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php echo urlencode(the_title('','', false)) ?>>Facebook</a><a> Facebook" href="http://facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php echo urlencode(the_title('','', false)) ?>">facebook</a>
    </div>

    I have tried a bunch of different things with no luck.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Moderator Kathryn

    (@zoonini)

    The code for opening a link in a new window is target="_blank" – you add that to your <a href> tag.

    Please use the backticks (code formatting button) so your code comes out properly.

Viewing 1 replies (of 1 total)
  • The topic ‘Simple PHP’ is closed to new replies.