WordPress DUX主题默认百度分享代码

WordPress DUX主题默认百度分享代码

浏览次数:
信息来源: 用户投稿
更新日期: 2023-10-02 13:29:03
文章简介

DUX主题默认的百度分享代码,会提示HTTPS不安全,至于怎么解决提示不安全的方式,我们下次再说,本次来说一下DUX大前端主题自带的默认分享代码,具体如下,把代码填写到后台主题的分享

2024阿里云双十一服务器活动

DUX主题默认的百度分享代码,会提示HTTPS不安全,至于怎么解决提示不安全的方式,我们下次再说,本次来说一下DUX大前端主题自带的默认分享代码,具体如下,把代码填写到后台主题的分享代码中即可。

<div class="bdsharebuttonbox">
<span>分享到:</span>
<a class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
<a class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
<a class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
<a class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
<a class="bds_sqq" data-cmd="sqq" title="分享到QQ好友"></a>
<a class="bds_bdhome" data-cmd="bdhome" title="分享到百度新首页"></a>
<a class="bds_tqf" data-cmd="tqf" title="分享到腾讯朋友"></a>
<a class="bds_youdao" data-cmd="youdao" title="分享到有道云笔记"></a>
<a class="bds_more" data-cmd="more">更多</a> <span>(</span><a class="bds_count" data-cmd="count" title="累计分享0次">0</a><span>)</span>
</div>
<script>
window._bd_share_config = {
    common: {
		"bdText"     : "",
		"bdMini"     : "2",
		"bdMiniList" : false,
		"bdPic"      : "",
		"bdStyle"    : "0",
		"bdSize"     : "24"
    },
    share: [{
        bdCustomStyle: "/share.css"
    }]
}
with(document)0[(getElementsByTagName("head")[0]||body).appendChild(createElement("script")).src="http://bdimg.share.baidu.com/static/api/js/share.js?cdnversion="+~(-new Date()/36e5)];
</script>

share.css文件内容

.bdsharebuttonbox{line-height: 24px;height: 24px;overflow: hidden;vertical-align: top;}
.bdsharebuttonbox a{width: 24px;height: 24px;display: inline-block;margin-right: 5px;background: url(../img/share.png) no-repeat;cursor: pointer;margin-bottom: 0;opacity: .8}
.bdsharebuttonbox a:hover{opacity: 1}
.bdsharebuttonbox a.bds_tsina{background-position     : 0 0;}
.bdsharebuttonbox a.bds_weixin{background-position    : 0 -33px;}
.bdsharebuttonbox a.bds_qzone{background-position     : 0 -65px;}
.bdsharebuttonbox a.bds_sqq{background-position       : 0 -98px;}
.bdsharebuttonbox a.bds_renren{background-position    : 0 -131px;}
.bdsharebuttonbox a.bds_tqq{background-position       : 0 -163px;}
.bdsharebuttonbox a.bds_diandian{background-position  : 0 -356px;}
.bdsharebuttonbox a.bds_youdao{background-position    : 0 -388px;}
.bdsharebuttonbox a.bds_ty{background-position        : 0 -420px;}
.bdsharebuttonbox a.bds_fbook{background-position     : 0 -452px;}
.bdsharebuttonbox a.bds_twi{background-position       : 0 -484px;}
.bdsharebuttonbox a.bds_kaixin001{background-position : 0 -228px;}
.bdsharebuttonbox a.bds_taobao{background-position    : 0 -196px;}
.bdsharebuttonbox a.bds_douban{background-position    : 0 -324px;}
.bdsharebuttonbox a.bds_mail{background-position      : 0 -548px;}
.bdsharebuttonbox a.bds_copy{background-position      : 0 -516px;}
.bdsharebuttonbox a.bds_bdhome{background-position    : 0 -292px;}
.bdsharebuttonbox a.bds_tqf{background-position       : 0 -260px;}
.bdsharebuttonbox a.bds_more, .bdsharebuttonbox a.bds_count{background: none;width: auto;height: auto;position: relative;top: -6px;}
.bdsharebuttonbox a.bds_count{margin: 0 2px;}
@media (max-width:560px){	
}
标签:
移除WordPress自动添加noopener noreferrer属性
« 上一篇
纯代码给wordpress添加倒计时模块 可任意自定义倒计时内容
下一篇 »

如本文对您有帮助,就请抽根烟吧!