Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Apr 2016
    Location
    Central Kansas
    Posts
    15
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Facebook Like Link

    Hi Everyone,

    On my Wordpress web page, "American Legion Post 9", I have a

    Facebook Like button that links to:http://facebook.com/gardencityamericanlegionpost9ks.

    Is it possoble to alter this link so when someone clicks on the Facebook Like Button, it will open in a new window?

    Is it like adding: http://facebook.com/gardencityamericanlegionpost9ks"target="_blank"?

    Or something similar?

    Thank you,

    Oldfriend

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    11,242
    Thanks
    6
    Thanked 1,350 Times in 1,319 Posts
    Well, if you would do it “properly” you’d do it with JavaScript to give users at least partly a choice to open that link in the same window if they prefer but yes, you can do it with taget="_blank", too.

    It would look like this:
    Code:
    <a href="https://facebook.com/gardencityamericanlegionpost9ks" target="_blank">…</a>

  3. Users who have thanked VIPStephan for this post:

    oldfriend (Feb 8th, 2019)


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •