إضافة أزرار أقوى الشبكات الاجتماعية لقائمة المشاركة بلوجر

لا يخفى علينا دور الشبكات الاجتماعية في مشاركة ونشر مواضيع المدونات و المواقع وكسب حركة مرور اضافية, من خلال هدا الشرح سنتعرف على كيفية اضافة ازرار المشاركة لاهم المواقع الاجتماعية الى الاداة القياسية لبلوجر التي تقتصر على الفايسبوك, تويتر, بلوجر و الارسال عبر الاميل, سنعمل على اضافة كل من Pinterest, stumbleupon ,linkedin, hellocoton,Google Plus, iGoogle.

معاينة شكل الأزرار
ازرار رمادية صغيرة
ازرار ملونة صغيرة
ازرار رمادية كبيرة
ازرار ملونة كبيرة


الخطوة الأولى: تفعيل أزرار المفضلات الاجتماعية في بلوجر 

 لتفعيل أزرار المفضلات الاجتماعية في بلوجر نتوجه من لوح تحكم المدونة إلى "عناصر الصفحة" ثم في مربع "رسائل المدونة الإلكترونية" نضغط "تحرير" و في النافذة المنبثقة نفعل الخيار بوضع علامة في الخانة التي تظهر جنب أزرار المفضلات كما يبدو في الصورة أسفله ثم نضغط زر الحفظ.





الخطوة الثانية: إضافة الأزرار إلى القالب

[1]من لوحة التحكم بلوجر نتبع المسار:  تصميم » تحرير HTML » توسيع القالب
[2] نبحث عن  <b:includable id='shareButtons' var='post'> ونضع بعده مباشرة الكود الاتي:

<b:includable id='shareButtons' var='post'>
<span class='post-share-buttons'>
<b:if cond='data:top.showEmailButton'><a class='goog-inline-block share-button sb-email' expr:href='data:post.sharePostUrl + &quot;&amp;target=email&quot;' target='_blank' title='أرسل عبر الإيميل'><span class='share-button-link-text'>أرسل عبر الإيميل</span></a></b:if>
<b:if cond='data:top.showBlogThisButton'><a class='goog-inline-block share-button sb-blog' expr:href='data:post.sharePostUrl + &quot;&amp;target=blog&quot;' expr:onclick='&quot;window.open(this.href, \&quot;_blank\&quot;, \&quot;height=270,width=475\&quot;); return false;&quot;' target='_blank' title='دون المشاركة'><span class='share-button-link-text'>دون المشاركة</span></a></b:if>
<b:if cond='data:top.showTwitterButton'><a class='goog-inline-block share-button sb-twitter' expr:href='data:post.sharePostUrl + &quot;&amp;target=twitter&quot;' target='_blank' title='شارك على تويتر'><span class='share-button-link-text'>شارك على تويتر</span></a></b:if>
<b:if cond='data:top.showFacebookButton'><a class='goog-inline-block share-button sb-facebook' expr:href='data:post.sharePostUrl + &quot;&amp;target=facebook&quot;' expr:onclick='&quot;window.open(this.href, \&quot;_blank\&quot;, \&quot;height=430,width=640\&quot;); return false;&quot;' target='_blank' title='شارك على الفايسبوك'><span class='share-button-link-text'>شارك على الفايسبوك</span></a></b:if>
<b:if cond='data:blog.pageType == &quot;item&quot;'><a class='goog-inline-block share-button sb-pinterest' href='javascript:void(bookmarks())' id='pinbookmarks' title='شارك على Pinterest'><span class='share-button-link-text'>شارك على Pinterest</span></a><script type='text/javascript'>
function bookmarks() {
var e=document.createElement(&#39;script&#39;);
e.setAttribute(&#39;type&#39;,&#39;text/javascript&#39;);
e.setAttribute(&#39;charset&#39;,&#39;UTF-8&#39;);
e.setAttribute(&#39;src&#39;,&#39;http://assets.pinterest.com/js/pinmarklet.js?r=&#39; + Math.random()*99999999);
document.body.appendChild(e);
}
</script></b:if>
<a class='goog-inline-block share-button sb-stumble' expr:href='&quot;http://www.stumbleupon.com/submit?url=&quot; + data:post.canonicalUrl + &quot;&amp;title=&quot; + data:post.title' expr:onclick='&quot;window.open(this.href, \&quot;_blank\&quot;, \&quot;height=580,width=800\&quot;); return false;&quot;' target='_blank' title='شارك على StumbleUpon'><span class='share-button-link-text'>شارك على StumbleUpon</span></a>
<a class='goog-inline-block share-button sb-linkedin' expr:href='&quot;http://www.linkedin.com/shareArticle?mini=true&amp;url=&quot;+ data:post.canonicalUrl + &quot;&amp;title=&quot; + data:post.title' expr:onclick='&quot;window.open(this.href, \&quot;_blank\&quot;, \&quot;height=430,width=640\&quot;); return false;&quot;' target='_blank' title='شارك على Linkedin'><span class='share-button-link-text'>شارك على Linkedin</span></a>
<b:if cond='data:blog.pageType != &quot;static_page&quot;'><a class='goog-inline-block share-button sb-hc' expr:href='&quot;http://www.hellocoton.fr/vote?url=&quot; + data:post.canonicalUrl' target='_blank' title='صوت على HelloCoton'><span class='share-button-link-text'>صوت على HelloCoton</span></a></b:if>
<a class='goog-inline-block share-button sb-gplus' expr:href='&quot;https://plus.google.com/share?url=&quot;+ data:post.canonicalUrl' expr:onclick='&quot;window.open(this.href, \&quot;_blank\&quot;, \&quot;height=430,width=640\&quot;); return false;&quot;' target='_blank' title='شارك على جوجل +'><span class='share-button-link-text'>شارك على جوجل +</span></a>
<b:if cond='data:feedLinks'><a class='goog-inline-block share-button sb-rss' expr:href='&quot;http://fusion.google.com/add?feedurl=&quot; + data:blog.homepageUrl + &quot;feeds/posts/default&quot;' target='_blank' title='أضف على آي جوجل'><span class='share-button-link-text'>أضف على آي جوجل</span></a></b:if>
<b:if cond='data:top.showDummy'><a class='goog-inline-block share-button sb-bc' href='http://prote9.blogspot.com/2012/08/blog-post_17.html' target='_blank' title='get this widget'><span class='share-button-link-text'>get this widget</span></a><div class='goog-inline-block dummy-container'><data:post.dummyTag/></div></b:if>
</span>
</b:includable>



الخطوة الثالثة : تشخيص الازرار 

 [1] نختار الحجم و الستايل الذي يناسبنا : 

                                      حجم الأزرار  : 
                 
                     الستايل  : 
/* Share Buttons Blogger Code
----------------------------------------------- */
.post-share-buttons {
  margin-top: .5em;
  vertical-align: middle;
  font-size: 0px;}
.share-button {
  background: url(https://sites.google.com/site/bloggercodebc/home/share_buttons/share_buttons_BC.png) no-repeat left !important;

 width: 20px !important;

   height: 20px !important;
  overflow: hidden !important;

 margin-left: -1px !important;
  position: relative !important;}
a:hover.share-button {
 text-decoration: none !important;
 z-index: 1 !important;}
.share-button-link-text {
 text-align: left !important;
 display: block !important;
 text-indent: -9999px !important;}
.sb-email { background-position: 0 0 !important; }

 a:hover.sb-email { background-position: 0 -20px !important; }

 a:active.sb-email { background-position: 0 -40px !important; }
.sb-blog { background-position: -20px 0 !important; }


 a:hover.sb-blog { background-position: -20px -20px !important; }

 a:active.sb-blog { background-position: -20px -40px !important; }
.sb-twitter { background-position: -40px 0 !important; }


 a:hover.sb-twitter { background-position: -40px -20px !important; }

 a:active.sb-twitter { background-position: -40px -40px !important; }
.sb-facebook { background-position: -60px 0 !important; }


a:hover.sb-facebook { background-position: -60px -20px !important; }

 a:active.sb-facebook { background-position: -60px -40px !important; }
.sb-orkut { background-position: -80px 0 !important; }


 a:hover.sb-orkut { background-position: -80px -20px !important; }

 a:active.sb-orkut { background-position: -80px -40px !important; }
.sb-pinterest { background-position: -100px 0 !important; }


 a:hover.sb-pinterest { background-position: -100px -20px !important; }

 a:active.sb-pinterest { background-position: -100px -40px !important; }
.sb-stumble { background-position: -120px 0 !important; }


 a:hover.sb-stumble { background-position: -120px -20px !important; }

 a:active.sb-stumble { background-position: -120px -40px !important; }
.sb-linkedin { background-position: -140px 0 !important; }


 a:hover.sb-linkedin { background-position: -140px -20px !important; }

 a:active.sb-linkedin { background-position: -140px -40px !important; }
.sb-hc { background-position: -160px 0 !important; }


a:hover.sb-hc { background-position: -160px -20px !important; }

 a:active.sb-hc { background-position: -160px -40px !important; }
.sb-gplus { background-position: -180px 0 !important; }


a:hover.sb-gplus { background-position: -180px -20px !important; }

a:active.sb-gplus { background-position: -180px -40px !important; }

.sb-rss { background-position: -260px 0 !important; }

 a:hover.sb-rss { background-position: -260px -20px !important; }
 a:active.sb-rss { background-position: -260px -40px !important; }

         [2]  من لوحة التحكم بلوجر نتبع المسار:  قالب » تخصيص » متقدم
       [3]  نضع الكود اعلاه في تبويبة "إضافة CSS"

* والان ما علينا سوى حفظ القالب .. وفي حالة مواجهة اي مشكلة في تركيب الاضافة يمكنك ترك تعليق !

هـل أعجبـك هـذا الموضـوع !؟

ليست هناك تعليقات:

إرسال تعليق

جميع الحقوق محفوظة محترفي التقينة ©2013-2014 | ، نقل بدون تصريح ممنوع . Privacy-Policy| إتصل بنا