Facebook “like” buttons
-
Howdy. I was trying to slap some facebook “like” buttons onto my single.php pages using these instructions:
https://www.webmonkey.com/2010/04/adding-facebook-like-buttons-to-your-site-is-damn-easy/
I slapped this code into the template:
‘<iframe src=”<?php the_permalink(); ?>” scrolling=”no” frameborder=”0″ allowTransparency=”true” style=”border:none; overflow:hidden; width:450px; height:px”>’
I reckon there’s something wrong with putting that PHP in there because all hell breaks lose with the template when i look at the pages. What’s the right way to get “the permalink” to show there? Is there a better way to put these “like” buttons on my pages? I would like to avoid more plugins or javascript – I’ve just got too darn much junk on the site.
- The topic ‘Facebook “like” buttons’ is closed to new replies.