riproV6.6.5主题美化·网站实现复制内容弹出提示框[ripro美化教程]
1、wordpress的小伙伴直接将以下代码加入到主题目录functions.php文件即可
2、RIPRO主题用户找到wp-content/themes/ripro/functions.php并将以下内容整体复制进去并保存
//网站实现复制内容弹出提示框 - https://www.dungei.net/.html
function jiub() {
echo '<link rel="stylesheet" type="text/css" rel="external nofollow" target="_blank" href="http://hqled.net/wp-content/themes/begin/go.php?url=aHR0cHM6Ly9jZG4uYm9vdGNzcy5jb20vc3dlZXRhbGVydC8xLjEuMy9zd2VldGFsZXJ0Lm1pbi5jc3M=" >';
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', 'jiub', 100 );
3、找到wp-content/themes/ripro/footer.php在前面加上
<?php jiub(); ?>