Tagged: facebook like
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
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
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