Friday, 14 September 2018

Adding the Share Button on the Revoltify Template

Adding the Share Button on the Revoltify Template

Adding the Share Button on the Revoltify Template
Adding the Share Button on the Revoltify Template - Good night blogger friend, this time I will share how to install the share button on the main page of the blog on the Revoltify template.
This post I made at the request of the blogger friend here about how to add the share button that appears when the mouse cursor is shifted to a post like the one on this blog. Of course, my friend already knows the function of this share button and here I will not explain the function but how to implement it, you don't need to worry about loading pages because this button is quite lightweight that only uses CSS and Markup.

Here's how to apply it:

Open the Blogger dashboard
Click Template
Click Edit HTML
Apply the code below in the special CSS of the homepage / main page



/* CSS Homepage Share */
ul.twitfbshare{clear:both;float:left;list-style:none outside none;position:absolute;z-index:10;margin:0;padding:0;top:20px;left:20px;line-height:normal;overflow:hidden;}
ul.twitfbshare li{text-align:left;float:left;margin-bottom:0;margin-top:-30px;opacity:0;padding:0;transition:all 0.3s;}
.post:hover .twitfbshare li{opacity:1;margin-top:0;}
ul.twitfbshare li a{background-clip:padding-box;background-repeat:no-repeat;display:block;overflow:hidden;text-align:center;text-transform:uppercase;white-space:nowrap;width:30px;height:30px;line-height:30px;position:relative;margin:0;padding:0;font-size:14px;font-weight:normal;background-color:#fff;color:#aaa;transition:all 0.3s;}
ul.twitfbshare li a:hover{color:#fff;}
ul.twitfbshare li a.f-like:hover {background-color:#5379b7;}
ul.twitfbshare li a.t-share:hover {background-color:#59c2e7;}
ul.twitfbshare li a.gplus-share:hover {background-color:#f35d5c;}

Then find the code below

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:post.thumbnailUrl'>

Apply the code below right after the code above

<ul class='twitfbshare'>
<li>
<a class='f-like' expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.url' rel='nofollow' target='_blank' title='Share On Facebook'><i class='fa fa-facebook'/></a>
</li>
<li>
<a class='t-share' expr:href='&quot;http://twitter.com/share?url=&quot; + data:post.url' rel='nofollow' target='_blank' title='Tweet On Twitter'><i class='fa fa-twitter'/></a>
</li>
<li>
<a class='gplus-share' expr:href='&quot;http://plus.google.com/share?url=&quot; + data:post.url' rel='nofollow' target='_blank' title='Share On Google Plus'><i class='fa fa-google-plus'/></a>
</li>
</ul>

Once applied it will look like this

<b:if cond='data:blog.pageType != &quot;item&quot;'>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'>
<b:if cond='data:post.thumbnailUrl'>
<ul class='twitfbshare'>
<li>
<a class='f-like' expr:href='&quot;http://www.facebook.com/sharer.php?u=&quot; + data:post.url' rel='nofollow' target='_blank' title='Share On Facebook'><i class='fa fa-facebook'/></a>
</li>
<li>
<a class='t-share' expr:href='&quot;http://twitter.com/share?url=&quot; + data:post.url' rel='nofollow' target='_blank' title='Tweet On Twitter'><i class='fa fa-twitter'/></a>
</li>
<li>
<a class='gplus-share' expr:href='&quot;http://plus.google.com/share?url=&quot; + data:post.url' rel='nofollow' target='_blank' title='Share On Google Plus'><i class='fa fa-google-plus'/></a>
</li>
</ul>

Finally save the template and see the results.

If you want to install the share button on another template, please adjust it again. That's enough and hopefully useful.

Saturday, 1 September 2018

Installing Facebook and Blogger Responsive Comments

Installing Facebook and Blogger Responsive Comments

Installing Facebook and Blogger Responsive Comments
Installing Facebook and Blogger Responsive Comments - Facebook and Side-by-Side Blogger Comments are two very related things because as we all know that in blogger comments Admin usually only offers blogger default comments column and some visitors may not have a gmail account but facebook.

So what we need to do here puts the Facebook comment column alongside blogger comments so that visitors who don't have gmail can comment using their Facebook account. The Facebook comment responsive code is combined with a tutorial from the Arlina Design blog on the article How to Install Facebook Responsive Comments on Blogger

How to Install Side and Responsive Facebook and Blogger Comments

1. Log in to the blog> Open Template> Copy the code below before ]]></b:skin> or </style>


/* Facebook and Blogger comments */
.komentargabungan-page,.komentargabungan-tab{display:inline-block;background:#fafafa;color:#fff;float:left;margin:0 10px 0 0;cursor:pointer;font-weight:bold;position:relative;font-size:110%;z-index:10}
.komentargabungan-page{background:rgba(255,255,255,1);width:100%;max-width:100%;margin:0 0 20px}
#blogger-comments-page h4{display:none}
#blogger-comments-page p{color:#444;}
#blogger-comments-page {padding:0px 5px;display:none;}
.komentargabungan-tab{background:#3b5998;padding:12px;transition:all .3s;}
.komentargabungan-tab:nth-child(2) {background:#fda753;transition:all .3s;}
.komentargabungan-tab:hover:nth-child(2) {background:#e1954a;}
.komentargabungan-tab-icon {height:14px;width:auto;margin:0 3px}
.komentargabungan-tab:hover{background-color:#324c82;}
.inactive-select-tab {background:#aaa}
.inactive-select-tab,.komentargabungan-tab:hover {background-color:#324c82;}

2. Then copy the code below before </body>


<script type="text/javascript">
//<![CDATA[
$(window).bind("load resize",function(){var o=location.protocol+"//"+location.host+location.pathname,t=$("#container-commentfb").width();$("#container-commentfb").html('<div class="fb-comments" data-href="'+o+'" width="'+t+'" data-num-posts="10"></div>'),FB.XFBML.parse()});
//]]>
</script>

3. Usually in the template there are two codes <div class='comments' id='comments'>, copy the code below just below the two codes <div class='comments' id='comments'>


<div class='komentargabungan-tab' id='fb-comments' onclick='javascript: commentToggle(&quot;#fb-comments&quot;);' title='Add Comments via Facebook'>
<fb:comments-count expr:href='data:post.url'/> Facebook comment</div>
<div class='komentargabungan-tab inactive-select-tab' id='blogger-comments' onclick='javascript:commentToggle(&quot;#blogger-comments&quot;);' title='Add Comments via Blogger'>
<data:post.numComments/> Blogger Comments</div>
<div class='clear'/>
</div>
<div class='komentargabungan-page' id='fb-comments-page'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div id='fb-root'/>
<div id='container-commentfb' style='width: 100%;'><fb:comments expr:href='data:post.url' num_posts='10' width='650'/></div>
</b:if></div>
<div class='comments komentargabungan-page' id='blogger-comments-page'>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/>
<script type='text/javascript'>
function commentToggle(selectTab) {$(&quot;.komentargabungan-tab&quot;).addClass(&quot;inactive-select-tab&quot;);$(selectTab).removeClass(&quot;inactive-select-tab&quot;);$(&quot;.komentargabungan-page&quot;).hide();$(selectTab + &quot;-page&quot;).show();}
</script>

4. Save the template and see the results on the blog.

So, the tutorial How to Install Facebook and Blogger Responsive Comments on Blog, hopefully with the tutorial above successfully applied to the blog. thanks.