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

第一步,直接将以下代码加入到主题目录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]-网站实现复制内容弹出提示框 WordPress美化-嗨皮网(Hpeak.cn)

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏
分享
评论 共34条

请登录后发表评论

    • HF的头像-嗨皮网(Hpeak.cn)
    • erotik0
      They do break so easily! But for all glowy, shimmery products, Becca is always a must-have! Elie Gerri Gonta
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • 샌즈카지노0
      So, I just found your blog and I like this entry the most. . Where can I learn more? Nichole Carey Edmund
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Very nice write-up. I definitely appreciate this website. Thanks! Danette Lazare Janie
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • erotik0
      In collaboration with public partners, Business connects local businesses and job-seeking residents with government-funded resources. Goldie Addie Morie
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • erotik0
      When you are considering new cleats, take into account your level of playing ability. Theadora Cosmo Aletha
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • erotik0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Great post! We are linking to this great content on our site. Dix Ingemar Reynard
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Thanks for the good writeup. It actually used to be a amusement account it. Yolande Berton Abel
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Hello. This post was really motivating, particularly because I was investigating for thoughts on this topic last Sunday. Fan Luigi Kaplan
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Hi, Wick, have you already got the module and tested it? Rafaela Robert Madoc
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      I love it when individuals get together and share opinions. Great site, keep it up! Donetta Fleming Malaspina
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Pretty! This was an incredibly wonderful post. Thanks for supplying this info. Mel Dorie Romola
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Enjoyed every bit of your blog. Thanks Again. Really Cool. Lilias Syman Paine
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      This product is awesome. And definitely an upgrade Franky Dario Costanza
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Hi there, its nice article regarding media print, we all be aware of media is a fantastic source of facts. Florence Waverly Redman
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Great article. Really looking forward to read more. Adrian Rosco Arela
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Dead written subject matter, regards for entropy. Maura Manuel Dowlen
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      Major thankies for the blog post. Much thanks again. Want more. Randy Kelvin Steele
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • turkce0
      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
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • online0
      Love you auntie!! Enjoy that beach life and time with sisters! Winnah Cleveland Ethbinium
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • diziler0
      Thanks, Lara! If only the day had a few more hours. Zulema Tadio Smail
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • dizi0
      Pretty! This has been an incredibly wonderful post. Many thanks for supplying this info. Kerry Kelsey Hitoshi
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • online0
      Good post. I will be dealing with some of these issues as well.. Alyse Abbie Ferree
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • watch0
      Really informative blog. Really thank you! Really Great. Ulrikaumeko Traver Rothschild
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • dizi0
      Looking forward to reading more. Great article. Thanks Again. Awesome. Alecia Darwin Tarrah
      8月前
    • HF的头像-嗨皮网(Hpeak.cn)
    • torrent1
      This is a terribly nice post. Thankyou exchange for posting this surprising article. Alejandrina Wallache Lubeck
      8月前