网站实现复制内容弹出提示框 WordPress美化

作者 : HF 本文共438个字,预计阅读时间需要2分钟 发布时间: 2020-08-11 共1.4K人阅读

第一步,直接将以下代码加入到主题目录functions.php文件即可

//复制粘贴
function jiub() {
 echo '<link rel="stylesheet" type="text/css" 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', 'jiub', 100 );

第二步,打开footer.php文件在前面加上

<?php jiub(); ?>

效果图

版权声明: 1.本网站名称:Hpeak.cn 2.本站永久网址:https://www.hpeak.cn 3.本网站的文章部分内容可能来源于网络,仅供大家学习与参考,如有侵权,请联系站长QQ2727447337进行删除处理。 4.本站一切资源不代表本站立场,并不代表本站赞同其观点和对其真实性负责。 5.本站一律禁止以任何方式发布或转载任何违法的相关信息,访客发现请向站长举报 6.本站资源大多存储在云盘,如发现链接失效,请联系我们我们会第一时间更新。
Hpeak.cn » 网站实现复制内容弹出提示框 WordPress美化

常见问题FAQ

美化包支持最新版本吗?

34 评论

  1. They do break so easily! But for all glowy, shimmery products, Becca is always a must-have! Elie Gerri Gonta

  2. So, I just found your blog and I like this entry the most. . Where can I learn more? Nichole Carey Edmund

  3. Very nice write-up. I definitely appreciate this website. Thanks! Danette Lazare Janie

  4. In collaboration with public partners, Business connects local businesses and job-seeking residents with government-funded resources. Goldie Addie Morie

  5. When you are considering new cleats, take into account your level of playing ability. Theadora Cosmo Aletha

  6. Hi there. I discovered your web site via Google at the same time as searching for a related matter, your website came up. It seems great. I have bookmarked it in my google bookmarks to come back then. Janenna Lief Jillene

  7. Great post! We are linking to this great content on our site. Dix Ingemar Reynard

  8. Just want to say your article is as amazing. The clearness in your post is simply nice and i can assume you are an expert on this subject. Fine with your permission let me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the enjoyable work. Nance Conroy Dunham

  9. please pay a visit to the sites we follow, which includes this a single, because it represents our picks through the web Alisun Matteo Bedad

  10. Thanks for the good writeup. It actually used to be a amusement account it. Yolande Berton Abel

  11. Hello. This post was really motivating, particularly because I was investigating for thoughts on this topic last Sunday. Fan Luigi Kaplan

  12. I found your blog web site on google and examine a few of your early posts. Continue to keep up the superb operate. I just extra up your RSS feed to my MSN News Reader. Looking for forward to reading more from you afterward!? Zahara Giraud Lois

  13. Thank you we will keep looking and writing good content so people are really informed. Have an amazing day and keep in touch. Julia Zane Kuster

  14. With every little thing which seems to be developing within this particular subject matter, a significant percentage of viewpoints tend to be fairly stimulating. Having said that, I beg your pardon, because I can not give credence to your entire suggestion, all be it exciting none the less. It looks to us that your remarks are generally not totally rationalized and in reality you are generally yourself not even completely convinced of the point. In any case I did enjoy reading it. Ileane Fowler Barret

  15. Hi, Wick, have you already got the module and tested it? Rafaela Robert Madoc

  16. I love it when individuals get together and share opinions. Great site, keep it up! Donetta Fleming Malaspina

  17. Pretty! This was an incredibly wonderful post. Thanks for supplying this info. Mel Dorie Romola

  18. Enjoyed every bit of your blog. Thanks Again. Really Cool. Lilias Syman Paine

  19. This product is awesome. And definitely an upgrade Franky Dario Costanza

  20. Hi there, its nice article regarding media print, we all be aware of media is a fantastic source of facts. Florence Waverly Redman

  21. Great article. Really looking forward to read more. Adrian Rosco Arela

  22. Dead written subject matter, regards for entropy. Maura Manuel Dowlen

  23. It is so good to see Mathew back in the saddle after what felt like a very long absence . Coincidently I recently created a Big Sid tribute for our home library Aloisia Lennie Hizar

  24. Hey there. I discovered your web site by means of Google whilst looking for a comparable subject, your web site got here up. It appears to be good. I have bookmarked it in my google bookmarks to visit then. Jobyna Felizio Heman

  25. Very good article! We are linking to this particularly great article on our website. Keep up the good writing. Else Kevon Sterne Ara Thor Salas

  26. Major thankies for the blog post. Much thanks again. Want more. Randy Kelvin Steele

  27. After I initially left a comment I seem to have clicked on the -Notify me when new comments are added- checkbox and now each time a comment is added I get 4 emails with the exact same comment. There has to be an easy method you are able to remove me from that service? Thanks! Iona Thibaut Resee

  28. Love you auntie!! Enjoy that beach life and time with sisters! Winnah Cleveland Ethbinium

  29. Thanks, Lara! If only the day had a few more hours. Zulema Tadio Smail

  30. Pretty! This has been an incredibly wonderful post. Many thanks for supplying this info. Kerry Kelsey Hitoshi

  31. Good post. I will be dealing with some of these issues as well.. Alyse Abbie Ferree

  32. Really informative blog. Really thank you! Really Great. Ulrikaumeko Traver Rothschild

  33. Looking forward to reading more. Great article. Thanks Again. Awesome. Alecia Darwin Tarrah

  34. This is a terribly nice post. Thankyou exchange for posting this surprising article. Alejandrina Wallache Lubeck

发表评论