WordPress.org

Ready to get started?Download WordPress

Forums

Simple PHP (2 posts)

  1. cbur2107
    Member
    Posted 3 years ago #

    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.

  2. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic