javascript - 如何在 Blogger 上添加社交媒体图标/徽标?
问题描述
如何将上述内容添加到我的 Blogger博客?编辑 HTML 时,我可以从我使用的主题中看到 Facebook 正在使用
<!-- FACEBOOK SHARE ICON -->
<a class='facebook-ico' expr:href='data:post.sharePostUrl + "&target=facebook"' expr:onclick='"window.open(this.href, \"_blank\", \"height=430,width=640\"); return false;"' expr:title='data:top.shareToFacebookMsg' target='_blank'><i class='fa fa-facebook'/><span class='split'>Facebook</span></a>
; LinkedIn 正在使用
<!-- LINKEDIN SHARE ICON -->
<a expr:href='"https://www.linkedin.com/shareArticle?mini=true&url=" + data:post.url + "&title="+ data:post.title' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow' target='_blank'><span class='share-text'><i class='fa fa-linkedin-square'/>LinkedIn</span></a>
; Pinterest 正在使用
<a expr:href='"https://pinterest.com/pin/create/button/?url=" + data:post.url + "&media=" + data:post.thumbnailUrl + "&description=" + data:post.snippet' onclick='window.open(this.href, 'windowName', 'width=550, height=600, left=24, top=24, scrollbars, resizable'); return false;' rel='nofollow'><span class='share-text'><i class='fa fa-pinterest'/></span></a>
; 推特正在使用
<a class='twitter-ico' expr:href='data:post.sharePostUrl + "&target=twitter"' expr:title='data:top.shareToTwitterMsg' target='_blank'><i class='fa fa-twitter'/> <span class='split'>Twitter</span></a>
; WhatsApp 正在使用
<a class='bitz' expr:data-href='data:post.url' expr:data-text='data:post.title' href='#' title='Share on whatsapp'><i class='fa fa-whatsapp'/>WhatsApp</a>
问题:一些按钮只有一个没有图标的链接(如LinkedIn);其他人有图标和链接(Facebook、Twitter、WA);其他人根本没有出现(Pinterest);他们都是没有动画的。
我想为 Facebook、Instagram、LinkedIn、Telegram、Twitter、WhatsApp 和任何相关的东西(与我的博客)添加(动画)图标,不繁琐、吸引人、流行并被大多数社交网络用户使用。
谢谢!
解决方案
推荐阅读
- sql - 如何将这两个查询组合成一个查询?
- jquery - 按名称而不是按 id 排序到 Jquery
- google-oauth - 如何判断用户使用的是 Google 帐户还是 G Suite for Education 帐户?
- javascript - React 何时渲染——管理各种异步调用、socketIO 和 React 之间的状态的问题
- javascript - 如何在需要标头的axios发布请求中具有配置参数
- excel - Excel 365 - 从 Web 获取带图像的数据表
- angularjs - 禁用周末和以前的日期 - AngularJS
- ruby-on-rails - 重新安装红宝石的麻烦
- c - 循环遍历奇数和 2
- python - Django:调整具有不同宽度/高度比的图像