Ang*_*ina 6 blogger wordpress-plugin facebook-social-plugins
如何在博客博客中集成社交内容储物柜?我们看到WordPress博客和网站的数量,
但在blooger.com博客中你看不到插件选项
有没有人有另一种方式或类似的东西?我希望访客在阅读我的帖子之前喜欢,推特或g +.
谢谢
我找到了这个工作脚本,您需要做的是首先备份您的模板。
然后编辑 HTML >search<head>标签并将此代码放在后面<head>
<script src='http://code.jquery.com/jquery-1.10.2.min.js' type='text/javascript'/>
Run Code Online (Sandbox Code Playgroud)
在该搜索</head>标签之后并在此标签之前放置以下代码
<link href='https://sites.google.com/site/menightfury/home/social-locker/public/sociallocker_v1.6.0.css' rel='stylesheet'/>
<script src='https://sites.google.com/site/menightfury/home/social-locker/public/sociallockermin_v1.6.0.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
jQuery(document).ready(function ($) {
$('#default-usage .to-lock').sociallocker({
buttons: {order:["facebook-like","twitter-tweet","google-plus"]},
twitter: {url:"https://www.facebook.com/www.mostsharedposts"},
facebook: {url:"https://www.facebook.com/www.mostsharedposts"},
google: {url:"https://plus.google.com/u/0/b/110589424466302901501/110589424466302901501"},
text: {
header: "Like us To Unlock This Content",
message: "This content is locked. Like us on Twitter, Facebook or Google plus to unlock it."
},
locker: {close: false, timer: 0,},
theme: "secrets"
});
});
//]]>
</script>
Run Code Online (Sandbox Code Playgroud)
这是如何在帖子编辑器中隐藏代码
转到帖子编辑 HTML 并添加此代码
<article id="default-usage">
<div class="to-lock" style="display:none;">
Hello i am the hidden content
</div>
</article>
Run Code Online (Sandbox Code Playgroud)
我在我的博客检查演示中实现了这个
| 归档时间: |
|
| 查看次数: |
2697 次 |
| 最近记录: |