WordPress子比主题用户中心添加扩展链接入口大熊1年前发布40子比主题用户中心的扩展入口是如何添加的,下面教大家如何在用户中心侧边栏添加这个扩展中心。只需要将下述代码放置于后台的自定义javascript代码内即可实现在用户中心侧边栏插入一个扩展入口。别忘了把图标外链更换预防失效,还有后面有两个hrfe有0去掉就行了。$(function(){ $('.col-sm-3 .sidebar-user').prepend('<div class="zib-widget padding-6"><div class="padding-6 ml3">扩展中心</div><div class="flex ac hh text-center icon-but-box user-icon-but-box"><style>.zyx-item {width: calc(25% - 10px);margin: 5px;min-width: 50px;max-width: 100px;cursor: pointer;}.icon{width: 1em;height: 1em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;}</style><a class="zyx-item" href="javascript:;" data-remote="https://www.qbzbiu.top/wp-admin/admin-ajax.php?action=checkin_details_modal" data-class="modal-mini full-sm modal-dialog" data-toggle="RefreshModal"><div class="em14" style="color:#777"><img class="icon em12" src="https://qbzbiu.top/wp-content/themes/zibll/img/ico/签到.svg"></div><div class="px12 muted-color mt3">签到奖励</div></a><style>.zyx-item {width: calc(25% - 10px);margin: 5px;min-width: 50px;max-width: 100px;cursor: pointer;}.icon{width: 1em;height: 1em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;}</style><a class="zyx-item" href="https://yzf.qbzbiu.top/"><div class="em14" style="color:#777"><img class="icon em12" src="https://qbzbiu.top/wp-content/themes/zibll/img/ico/线上支付.svg"></div><div class="px12 muted-color mt3">星空支付</div></a><style>.zyx-item {width: calc(25% - 10px);margin: 5px;min-width: 50px;max-width: 100px;cursor: pointer;}.icon{width: 1em;height: 1em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;}</style><a class="zyx-item" hr0ef="https://www.qbzbiu.top"><div class="em14" style="color:#777"><img class="icon em12" src="https://qbzbiu.top/wp-content/themes/zibll/img/ico/待定.svg"></div><div class="px12 muted-color mt3">待定</div></a><style>.zyx-item {width: calc(25% - 10px);margin: 5px;min-width: 50px;max-width: 100px;cursor: pointer;}.icon{width: 1em;height: 1em;vertical-align: -0.15em;fill: currentColor;overflow: hidden;}</style><a class="zyx-item" hr0ef="https://www.qbzbiu.top"><div class="em14" style="color:#777"><img class="icon em12" src="https://qbzbiu.top/wp-content/themes/zibll/img/ico/待定.svg"></div><div class="px12 muted-color mt3">待定</div></a></div></div>'); }); 温馨提示:本文最后更新于2024-09-22 00:57:13,某些文章具有时效性,若有错误或已失效,请私信客服或联系网创熊站长。© 免责声明 版权声明 1本网站名称:网创熊 2本站永久网址:https://www.wyuuu.cn 3本站文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系客服微信:Dax2367 进行删除处理。 4本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。 5本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向客服举报 6本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。