WordPress 添加复制版权提示

综合评论8,425,494字数 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

子比主题:特色与优势解析
子比主题:特色与优势解析 综合

子比主题:特色与优势解析

子比主题的官网为:https://www.zibll.com/ 。子比主题专为博客、自媒体、资讯类的网站设计开发,采用简约优雅的设计风格让网站更具美感,创新的前端模块化功能配置和全面的前端用户功能,使...
  • 本文由 admin 发表于2024年8月10日 19:01:51
  • 转载请务必保留本文链接:https://bbs.50-0.cn/588.html
  • 版权
匿名

发表评论

匿名网友
确定