Facebook Like button

Simon Johns's Avatar

Simon Johns

05 Feb, 2013 10:38 PM

Hello, I've succeeded at installing a 'pin it' button at the end of each project but would like to intall a FB Like button. I can't seem to get it to work wherever I try pasting the code.
The second part of the code I can paste in the bottom of a project text box, but the main piece of code, I just don't know, I've tried many things and nothing works. They ask to ''Include the JavaScript SDK on your page once, ideally right after the opening tag''
I've tried in the main.css and in the header.php.
I'm using Humii.

simonjohns.com

  1. 1 Posted by Simon Johns on 05 Feb, 2013 10:40 PM

    Simon Johns's Avatar

    Oh, here's where I got the code.
    http://developers.facebook.com/docs/reference/plugins/like/

    Sorry to bother with FB nonsense.....

    And any help appreciated!

  2. 2 Posted by dkamar2 on 07 Dec, 2014 05:16 AM

    dkamar2's Avatar

    Anyone has an answer for this?

  3. Support Staff 3 Posted by Mikael on 26 Feb, 2015 03:56 PM

    Mikael's Avatar
    1. Place the Javascript SDK code after the section of your header.php file.
    2. Then, in layout_projects.php, put the following:
    <div class="fb-like" data-href="<?php echo projectLink(); ?>" data-layout="standard" data-action="like" data-show-faces="true" data-share="true"></div>
    

    The projectLink() tag generates a URL to be used for things like this.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac