Tạo hộp subscribe 3 trong 1 ngay dưới bài viết

Hộp subscribe thì hầu như blog nào cũng có và chúng đều ở sidebar, hôm nay mình sẽ hướng dẫn các bạn tạo một hộp subscribe 3 trong 1, nó kết hợp subscribe, follow và like, nhưng điều đặc biệt là nó nằm ở ngay dưới bài viết của các bạn.

#Cách thực hiện

1. Đăng nhập Blogger
2. Mẫu > Chỉnh sửa HTML
3. Tìm thẻ <div class='post-footer'>
Thường thì bạn sẽ tìm được 2 thẻ như trên và chúng ta sẽ thực hiện bước tiếp theo với thẻ thứ 2 mà bạn tìm được
4. Dán code dưới vào dưới thẻ mà bạn vừa tìm
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<style type="text/css">
form.feedburner {
    margin: 20px 0 0;
    display: block;
    clear: both;
}
.Btstyle {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhf8bOP4hy5y_eFM5urF1rJ1vlNO6F3E4_V_96l915NpJBn8h1jbDILg-73BBVRowjkcbnq2AokDxAnxg2KRdsTXhu6HSo1dTSCNv-5intcAMmLCMJyfR2lZw7ZzbwvlKDI5m9nKkH63V8/s1600/email-icon.png) no-repeat scroll 4px center transparent;
    padding: 7px 15px 7px 35px;
    color: #666;
    font-weight: bold;
    text-decoration: none;
    border: 1px solid #D3D3D3;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -moz-box-shadow: 1px 1px 2px #CCC inset;
    -webkit-box-shadow: 1px 1px 2px #CCC inset;
    box-shadow: 1px 1px 2px #CCC inset;
}
.bloggertrixsubmit {
    color: #666;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 15px;
    border: 1px solid #D3D3D3;
    cursor: pointer;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    -goog-ms-border-radius: 4px;
    border-radius: 4px;
    background: #fbfbfb;
    background: -moz-linear-gradient(top, #fbfbfb 0%, #f4f4f4 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fbfbfb), color-stop(100%,#f4f4f4));
    background: -webkit-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
    background: -o-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
    background: -ms-linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr=&#39;
    #FBFBFB&#39;, endColorstr=&#39;#F4F4F4&#39;,GradientType=0 );
background: linear-gradient(top, #fbfbfb 0%,#f4f4f4 100%);
}
#btrix-widget {
    -moz-border-radius: 10px 10px 10px 10px;
    -webkit-border-radius: 10px 10px 10px 10px;
    -goog-ms-border-radius: 10px 10px 10px 10px;
    border-radius: 10px;
    background: none repeat scroll 0 0 transparent;
    border: 1px solid #D3D3D3;
    padding: 8px;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    -webkit-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    width: 480px;
    -webkit-box-shadow: inset 0px 0px 8px rgba(50, 50, 50, 0.75);
    -moz-box-shadow: inset    0px 0px 8px rgba(50, 50, 50, 0.75);
    box-shadow: inset         0px 0px 8px rgba(50, 50, 50, 0.75);
    -webkit-box-shadow: inset 0px 5px 0px 0px #D8D8D;
}

#btrix-widget:hover {
    background: none repeat scroll 0 0 #FFF;
    -moz-box-shadow: 1px 1px 2px #CCC inset;
    -webkit-box-shadow: 1px 1px 2px #CCC inset;
    box-shadow: 1px 1px 2px #CCC inset;
}

#btrix-widget td {
    padding: 3px 0;
}
</style>
<center><br/><div id='btrix-widget'>
 <div id='emailwidget'>
  <table style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;' width='100%'>
  <tbody>
  <tr style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;'>
   <td align='left' style='border:none; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px;'>
    <p style='color:#666; font-weight: bold; font-size: 18px; margin:0px 0px 5px 0px;font-family:georgia;font-style:italic; '>
     Get free daily email updates!
    </p>
    <form action='http://feedburner.google.com/fb/a/mailverify' class='feedburner' method='post' onsubmit='window.open(&apos;http://feedburner.google.com/fb/a/mailverify?uri=bloggertrix&apos;, &apos;popupwindow&apos;, &apos;scrollbars=yes,width=550,height=520&apos;);return true' style='margin: 0pt;' target='popupwindow'>
     <input name='uri' type='hidden' value='blogkhanh98'/>
     <input name='loc' type='hidden' value='en_US'/>
     <input class='Btstyle' name='email' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Enter your email…&quot;;}' onfocus='if (this.value == &quot;Enter your email…&quot;) {this.value = &quot;&quot;}' type='text' value='Enter your email…'/>
     <input alt='' class='bloggertrixsubmit' title='' type='submit' value='Submit'/>
    </form>
   </td>
   <td style='border:none; margin: 0px -5px 0px 0px; padding: 0px -5px 0px 0px;'>
    <p style='color:#666; font-weight: bold; font-size: 14px; margin:0px 0px 5px 0px;font-family: georgia; '>
     Follow us!
    </p>
    <a href='http://feeds.feedburner.com/blogkhanh98' rel='nofollow' target='_blank' title='Suscribe to RSS Feed'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6Wi0Ob29dhusc1UscA0RUbs9frOj2GZI0D6pWlhUR5DS6ON_GYAv6ykqE2JbKqrwFgnUS4S9sfhFKfzpV_KVzktFxFMasT3FhqQdcaBvVy7kLzJKSgrbS6gbc-wRvzG6OVQl5pmoG8qU/s1600/rss-icon.png'/></a>
    <a href='http://twitter.com/chelskivn29' rel='nofollow' target='_blank' title='Follow us on Twitter'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjmn05emTnK8WjkV_eGCWsC8rqbkidhNjDwOJs-nl5g_QqMw26Pf3hUiM1EFhWcEP8asSrCdh9SgOe4r37ETbRVBQtg6krKgJusDeqTaj7R8YWjxmEqSAbp6ENzTdPmaq9xcXnFPepOdMs/s1600/twitter-icon.png'/></a>
    <a href='http://www.facebook.com/khanh98blogspotcom' rel='nofollow' target='_blank' title='Follow us on Facebook'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv_2sDZAZxmGPD7AksfTlcao7LWbBH8oCw5wtfwOpdSTMraQv9hLUa7niAiDvjRSqBxPMTAgXn-iQAY4WnVWHpi3TdjXEAiTojZrBTX9-TgfdpGiifBDbZrMBVBESfunTdXOfgh1Vr2dk/s1600/facebook-icon.png'/></a>
  
   </td>
  </tr>
  </tbody>
  </table>
  <div align='right'>
    <span style='font-style: italic; font-size: 8px; color: solid #ffffff;'><a href='http://khanh98.blogspot.com' style='text-decoration: none;' target='_blank'><font color='#000' decoration='none'>[Get this widget]</font></a></span>
  </div>

<div align='left'>
<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fkhanh98blogspotcom&amp;send=false&amp;layout=standard&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=35" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:35px;" allowtransparency="true"></iframe>
<a class='twitter-follow-button' href='http://twitter.com/chelskivn29' rel='nofollow'></a>
  <script src='http://platform.twitter.com/widgets.js' type='text/javascript'></script>
 </div>
 </div>
</div>
</center>
</b:if>
Lưu ý:

  • blogkhanh98 là ID Feeds của bạn
  • khanh98blogspotcom là ID Fanpage của bạn trên Facebook
  • chelskivn29 là ID Twitter của bạn
5. Lưu mẫu lại.
Bây giờ bạn hãy truy cập vào một bài viết bất kì trên blog của bạn và kiểm tra thành quả.

Comments

  1. This comment has been removed by a blog administrator.

    ReplyDelete

Post a Comment



» Vui lòng không spam vì nó sẽ bị xóa ngay sau đó.
» Nếu chèn code hãy mã hóa trước khi chèn vào nhận xét.
» Nếu thủ thuật Blog không áp dụng được thì hãy để lại URL blog để mình tiện kiểm tra.