Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1236338

    Hi, the blog layout I am using has all social icons in the bottom section. As for facebook, sharing the content is enabled. I would also like to have a fb Like button on top of the content, below Headline and meta. I tried to infuse a shortcode, but have failed to synchonize the post with fb java sdk …for example: <div class=”fb-like” data-href=”<?php the_permalink(); ?>” data-width=”” data-layout=”button_count” data-action=”like” data-size=”small” data-share=”false”></div>
    this code only likes a “page not found” and doesn’t work globally for posts
    any suggestions, please
    thanks, nine2ten

    #1236377

    Hey nine2ten,

    The code you are trying to use probably won’t work since it has PHP in it. Do you have any instructions on how to implement this? You might also want to look for a plugin which will do it for you.

    Best regards,
    Rikard

    #1236402

    Hi Rikard, I tried and tried, I have a plugin to execute shortcodes and to allow php … FB Likes works for amp pages, but not on desktop and mobile .. perhaps it’s more complicated to add and requires dedicated programing .. thanks anyways

    #1236573

    Hi,

    Thanks for the update. I’m not sure why it would only work for AMP pages unfortunately, what code did you exactly and where? Also, where did you get the code you are using from? Didn’t you get some kind of instructions on how to implement it?

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.