WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Like button on Blog, but to like Facebook page (7 posts)

  1. djaef
    Member
    Posted 2 years ago #

    I hope you get the gist of the problem from the title.
    I want to add a Facebook like button on the front page of my wife's site, but I don't want it to like the page people are on, but they'd be liking her Facebook page. All the WordPress plugins I can find work to like the page the user is on.

    Maybe I just need a widget with a bit of code in it instead of a plugin?

    Thanks if you can help.

  2. djaef
    Member
    Posted 2 years ago #

    I would use the generated code from this site - https://developers.facebook.com/docs/reference/plugins/like/ - but it requires code to be placed in the body of the html, so I don't see how I'd use that with WordPress.

  3. Cbas23
    Member
    Posted 2 years ago #

    I'd like to know how to do this as well. Haven't found anything yet

  4. Cbas23
    Member
    Posted 2 years ago #

    Figured it out.. Use the iFrame code from that facebook dev link. I put it straight into my homepage php code and it worked nicely. Check it out here: http://dazestate.com/

  5. Cbas23
    Member
    Posted 2 years ago #

    One question though: what should I do to change the color of the iframes text?

  6. djaef
    Member
    Posted 2 years ago #

    How do I figure out which php file to put the code in?

  7. Cbas23
    Member
    Posted 2 years ago #

    It should be home.php, but it may be different on your site - try to find the readme or info file for your theme. This may help too. Otherwise, just look through the php code until you find a file that matches your homepage layout.

Topic Closed

This topic has been closed to new replies.

About this Topic