Vnso1blog_BLOGGER: HOW TO ADD FACEBOOK LIKE BUTTON IN DYNAMICS VIEW.
10:00 PMto Dynamics View (Dv) users : Dv is great for Pictures showing but when you want to add FB like button, it's suck !
I had searched many times for the "like" adding and it went crazy. Luckily I found the solution in a French gal's blog named Soraya, she's a genius, thanks her alot.
This's her blog: http://bloggercode-blogconnexion.blogspot.com/
And here is the cure:
1 - Copy this code:
<b:if cond='data:blog.isMobile == "false"'>
<script language='javascript' type='text/javascript'>
$(document).ready(function() {
var addfbbox = function() {
$("#search").before("<span style='height: 62px; padding: 0; margin 0; position: absolute; top: 0px; right: 224px;'><iframe allowTransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?href=https://www.facebook.com/Blogger.Code&width=250&height=62&colorscheme=light&show_faces=false&border_color&stream=false&header=false' style='border: none; overflow: hidden; width: 250px; height: 62px;'/></span>");
};
var checkSearchBar = function() {
if ($('#search').length > 0) {
addfbbox();
} else {
setTimeout(checkSearchBar, 100);
}
};
checkSearchBar();
});
</script>
</b:if>
Change letters in blue with your desires: Your Facebook URL, the Like box's dimensions, the colors of the box (light or dark), etc...
2 - Go to Dashboard - Template - Edit HTML - Find for 'b:include data='blog' name='google-analytics' - paste the code directly above it.
3 - Click "Save Template" and Tadaaa..., view ur blog for the result, even your FB badge was shown. U can view my Blog for example :D : http://metalcrisis.blogspot.com/.
Hope u like it and let me know if u're success. Gud luck !
1 comments