Những đoạn HTML Social Share (chia sẻ MXH) phổ biến cho Blogger
Button chia sẻ bài viết lên các trang mạng xã hội là một thành phần không thể thiếu với mỗi template blogspot. Việc bố trí bày biện nó trên website cũng phản ánh rất nhiều con mắt thẩm mĩ của mỗi Blogger. Nhưng trước khi làm điều đó bạn cần có code HTML tự động tạo liên kết valid với từng mạng xã hội.
![]() |
Những đoạn HTML Social Share (chia sẻ MXH) phổ biến cho Blogger |
Bài viết này sẽ chia sẻ tới bạn đọc button share tới các mạng xã hội thông dụng hiện nay gồm
- VK
- Yummly
- Tumblr
- Buffer
- Stumble
Nếu bạn có code các mạng xã hội khác, hãy đóng góp ở mục comment để bài viết được hoàn thiện hơn.
1. Facebook
<a expr:href='"http://www.facebook.com/sharer.php?u=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=600, height=400, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>Facebook</a>
2. Twitter
<a expr:href='"http://twitter.com/share?url=" + data:post.url + "&title=" + data:post.title' onclick='window.open(this.href, 'windowName', 'width=600, height=400, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>Twitter</a>
3. Pinterest
<a expr:href=""http://pinterest.com/pin/create/button/?url=" + data:post.url + "&media=" + data:post.firstImageUrl + "&description=" + data:post.snippet" href="https://www.blogger.com/null" onclick="window.open(this.href, 'windowName', 'width=800, height=600, left=200, top=24, scrollbars, resizable'); return false;" rel="nofollow" target="_blank" title="Share to Pinterest">Pinterest</a>
4. Linkedin
<a expr:href='"http://www.linkedin.com/shareArticle?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'>Linkedin</a>
5. VK
<a expr:href='"http://vkontakte.ru/share.php?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to VK'>VK</a>
6. Yummly
<a expr:href='"http://www.yummly.com/urb/verify?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to Yummly'>Yummly</a>
7. Tumblr
<a expr:href='"http://www.tumblr.com/share/link?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=550, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to Tumblr'>Tumblr</a>
8. Buffer
<a expr:href='"https://bufferapp.com/add?url=" + data:post.url + "&text="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to Buffer'>Buffer</a>
9. Reddit
<a expr:href='"http://reddit.com/submit?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to Reddit'>Reddit</a>
10. Stumble
<a expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=1000, height=700, left=200, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank' title='Share to StumbleUpon'>Stumble</a>
Trên đây là code tạo nút chia sẻ bài viết lên mạng xã hội, hoàn toàn bằng HTML, còn việc bố trí, css như nào là do bạn hoàn toàn kiểm soát. Mạng xã hội là 1 thành phần rất quan trọng trong việc SEO website vì vậy bạn nên tạo càng nhiều tương tác với nhiều mạng xã hội càng tốt nhé!
Tăng tương tác MXH
Like, sub, view, comment, share livestream…
- Instagram, TikTok, YouTube, Twitter, Shopee
- Dịch vụ nhanh – ổn định
🎁 Mã giảm giá: đang cập nhật
Khám pháTài khoản Premium
CapCut, Canva, ChatGPT, Semrush, HMA, Google Ads…
- Kích hoạt nhanh – bảo hành rõ
- Đa dạng gói
🎁 Mã giảm giá: đang cập nhật
Mua ngayTemplate Blogspot
Thiết kế chuẩn SEO, tối ưu tốc độ & giao diện.
- Nhiều mẫu cho blog, shop
- Tùy biến dễ
🎁 Mã giảm giá: anhtrainang (-10%)
Xem mẫuBài viết liên quan
Nhận xét (8)
HƯỚNG DẪN BÌNH LUẬN
Chèn link
Sử dụng công cụ Tạo link
Chèn hình ảnh
LINK_ANH
- sử dụng công cụ upload ảnh. Và chỉ cần lấy link ảnh chèn vào bình luận là ảnh tự động hiển thị.
Định dạng chữ
<b>Chữ in đậm</b>
<i>Chữ in nghiêng</i>
<u>Chữ gạch chân</u>
<strike>Chữ gạch ngang</strike>
Chèn một đoạn Code
Đầu tiên sử dụng công cụ này để mã hóa đoạn code muốn chèn.
Sau đó dùng thẻ [code] CODE_ĐÃ_MÃ_HÓA [/code]
Khác
👉 Nhập Email bạn hay dùng để nhận thông báo khi mình trả lời bình luận của bạn.
👉 Vui lòng không nhập bất kỳ Liên kết Spam nào trong hộp nhận xét.
👉 Tích vào ô "Thông báo cho tôi" để nhận thông báo nội dung phản hồi của bình luận.
Chèn emoji: Nhấn tổ hợp phím “Windows + . (dấu chấm)”
Cái màu xanh ở trang chủ?
Trả lờiXóacái gì em?
Xóaở trang chủ á, home - about us á
Xóathì cái menu mà :v
XóaTrên điện thoại bị lỗi :v
Xóaổn rồi nha :v
Xóacho mình xin tem : hungprovnqb@gmail.com cảm ơn adm
Trả lờiXóatemp nào vậy bạn?
Xóa