WordPress 添加复制版权提示

综合评论3,781,393字数 111阅读0分22秒

方法
只需要在function.php中添加如下代码

// 版权提示
function zm_copyright_tips() {
 echo '<link rel="stylesheet" type="text/css" rel="external nofollow" target="_blank" href="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.css">';
 echo '<script src="https://cdn.bootcss.com/sweetalert/1.1.3/sweetalert.min.js"></script>';
 echo '<script>document.body.oncopy = function() { swal("复制成功!", "转载请务必保留原文链接,申明来源,谢谢合作!!","success");};</script>';
}
add_action( 'wp_footer', 'zm_copyright_tips', 100 );

 文章源自小武站https://1z345.cn/小武站-https://bbs.50-0.cn/588.html 文章源自小武站https://1z345.cn/小武站-https://bbs.50-0.cn/588.html

分享一些非经营性备案的快速通过技巧
分享一些非经营性备案的快速通过技巧 综合

分享一些非经营性备案的快速通过技巧

以下是一些有助于个人网站非经营性备案快速通过的技巧: 1. 提供真实准确完整的信息:在备案申请表中,务必如实填写个人信息、网站信息等,包括联系方式、网站名称、网站用途等。任何虚假或不准确的信息都可能导...
  • 本文由 admin 发表于 2024年8月10日 19:01:51
  • 转载请务必保留本文链接:https://bbs.50-0.cn/588.html
  • 版权
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定