Vnso1blog_BLOGGER: HOW TO ADD FACEBOOK LIKE BUTTON IN DYNAMICS VIEW.

10:00 PM


to 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 == &quot;false&quot;'>
<script language='javascript' type='text/javascript'>
$(document).ready(function() {
  var addfbbox = function() {
    $(&quot;#search&quot;).before(&quot;<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&amp;width=250&amp;height=62&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false' style='border: none; overflow: hidden; width: 250px; height: 62px;'/></span>&quot;);
  };
  var checkSearchBar = function() {
    if ($(&#39;#search&#39;).length &gt; 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 !

You Might Also Like

1 comments

Total Pageviews

Contact Form

Name

Email *

Message *