Saturday, February 7, 2015

Post title ရဲ႕​ေအာက္မွာ ​floating social media sharing buttons​ေလးထည္​့ခ်င္​ရင္​

​ေရးသူ

Step 1. Access your Blogger Dashboard and go to Template > click on the Edit HTML button



Step 2. Click anywhere inside the code area and press the CTRL + F keys to open the search box. Type the tag below inside the search box and hit Enter to find it.

Search က​ေန ​ေအာက္​ကကုဒ္​​ေလး႐ွာ​ေပးပါ
</head> မ​ေတြြ႔ခဲ့ရင္​ ပံုမွာျပထားတဲ့အတိုင္​း 
....​ေနရာမွာ click လိုက္​ပါ...

blogger search box, ctrl + f

Step 3.​. </head> ကို​ေတြ႔ပီဆိုရင္​​ေတာ့ သူ႔ရဲ႕အထက္​က ​ေအာက္​ကကုဒ္​ကို ထည္​့​ေပးပါ.. .
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>
//<![CDATA[
$(function() {
var $movesbuttons = $("#floating-social-buttons"),
$window = $(window),
offset = $movesbuttons.offset();
$window.scroll(function() {
if ($window.scrollTop() > offset.top) {
$movesbuttons.css({'position' : 'fixed', 'width' : '550px', 'top' : '0px'});
} else {
$movesbuttons.css({'position' : 'absolute', 'top' : 'auto'});
}
});
});
//]]>
</script>
Step 4. Now ဆက္​သြားရ​ေအာင္​  ]]></b:skin> ကို႐ွာမယ္​ ​ေတြ႕ရင္​သူ႕ရဲ႕အ​ေပၚမွာ ​ေအာက္ကကုဒ္​​ေလး ထည္​့​ေပးပါ:
#floating-social-buttons {
padding: 6px 0px 12px;
position: absolute;
background: #F6F6F6;
border-bottom: 1px solid #DEDEDE;
width: 550px;
height: 18px;
z-index: 99;
}
.floating-social-buttons {
margin-left: 5px !important;
}
.floating-social-buttons li {
float: left;
margin-left: 5px;
list-style:none;
}

 Step 5. Finally, ​ေနာက္​ဆ့ံုးအဆင္​့အ​ေနနဲ႔ 
 <div class='post-header'> ရွာ​ေပးပါ ​ေတြ႔ပီဆိုရင္​ သူ႔ရဲ႕​ေအာက္​မွာ ​ေအာက္​ကကုဒ္​ကို ထည္​့္​​ေပးပါ:
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div style='padding:5px 0 35px0;clear:both;'>
<div id='floating-social-buttons'>
<ul class='floating-social-buttons'>

<li><iframe allowTransparency='true' expr:src='&quot;http://www.facebook.com/plugins/like.php?href=&quot; + data:post.url+ &quot;&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;height=25&amp;action=like&amp;font=tahoma&amp;colorscheme=light&quot;' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:100px; height:25px;'/></li>

<li><a class='twitter-share-button' data-lang='en' href='https://twitter.com/share'>Tweet</a><script src='//platform.twitter.com/widgets.js' type='text/javascript'/></li>

<li><script src='http://apis.google.com/js/plusone.js' type='text/javascript'/><g:plusone expr:href='data:post.url' size='medium'/></li>

<li><a class='pin-it-button' count-layout='horizontal' expr:href='&quot;http://pinterest.com/pin/create/button/?url=&quot; + data:post.url + &quot;&amp;media=&quot; + data:post.thumbnailUrl + &quot;&amp;description=&quot; + data:post.snippet' style='margin:0 10px 5px 0;'>Pin It</a> <script src='http://assets.pinterest.com/js/pinit.js' type='text/javascript'/></li>

</ul>
</div>
</div>
</b:if>

 Step 6. Click on the Save template button... and that's it!

အဆင္​​ေျပႏိုင္​ပါ​ေစ.... GelminN


မွတ္​ခ်က္​​ေရးရန္​ သို႔မဟုတ္​

0 မွတ္​ခ်က္​​ေပး:

Post a Comment

သင္​​ေရး​ေပးခဲ့​ေသာ ကြန္​းမန္​႔တစ္​​ေၾကာင္​းဟာ
စာ​ေရးသူအတြက္​ အား​ေဆးတစ္​ခြက္​ပါ
တစ္​ခုခု ​ေရး​ေပးခဲ့ပါ.......