[WP]修改WP插件样式(简码插入)思路之一(修改AudioIgniter插件样式)

/ 4,266评论 / 15976阅读 / 0点赞

简介

修改插件样式的方式有多种,可以直接通过wordpress自带的插件文件编辑器修改插件文件,但显然插件更新时需要重新修改。本文将介绍通过”自定义HTML“模块来修改通过简码插入的插件样式。


前言/起因

起初是想建一个在线播放音乐的网站,需要一个音乐播放器插件,且需要带有播放列表,循环播放等功能。但一直找不到好用的,最后找到了一个功能上满足我的基本需求的插件:AudioIgniter。但它的外观没有长在我的审美上,于是用上刚学俩星期的前端三件套,走上了自己动手,丰衣足食的道路。


AudioIgniter样式对比


AudioIgniter插件样式源码/使用方法

样式源码

<style>
/*取消原来的部分设置*/
.ai-wrap .ai-track.ai-track-active, .ai-wrap .ai-track:hover {
    background-color: transparent;  
    background: rgba( 255, 255, 255, 0.25);
}
.ai-wrap .ai-track {
    background-color: transparent;
}
.ai-wrap .ai-track-control{
    border-left: transparent;
}

/*播放器背景div*/
.ai-wrap{
    background: linear-gradient(200deg,#8eeac7,#b5e6fe);
    /* 溢出隐藏 */
    overflow: hidden;
    /*圆角*/
    border-radius: 30px;
    /* 阴影 */
    box-shadow: 0 5px 20px rgba(102,204,255,2);
}

/*播放列表*/
.ai-track{}
.ai-track:hover, .ai-track-active{
    background: rgba( 255, 255, 255, 0.5 );
    backdrop-filter: blur( 6px );
    -webkit-backdrop-filter: blur( 6px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.3);
    /* 阴影 */
    box-shadow: 0 2px 20px rgba(208, 216, 222, 1);
}
.ai-track-name{
    font-weight: 900;
    color:#535273;
}

/*专辑图*/
.ai-wrap .ai-track-no-thumb, .ai-wrap .ai-control-wrap-thumb{
    background-color: transparent;
}
.ai-track-no-thumb, .ai-track-thumb, .ai-wrap .ai-control-wrap-thumb{
    background: rgba( 255, 255, 255, 0.2);
    backdrop-filter: blur( 20px );
    -webkit-backdrop-filter: blur( 20px );
    border-radius: 10px;
    /* 阴影 */
    box-shadow: 0 2px 20px rgba(208, 216, 222, 1);
}


/*正在播放歌曲的标题*/
.ai-track-title span{
    font-weight: 900;
    color: #535273;
}
.ai-track-subtitle span{
    color:#b187a2;
}

/*播放/暂停按钮*/
.ai-wrap .ai-audio-control, .ai-wrap .ai-audio-control:focus{
    background-color: transparent;
    background: rgba( 255, 255, 255, 0.1);
    backdrop-filter: blur( 20px );
    -webkit-backdrop-filter: blur( 20px );
    border-radius: 50px;
    border: 1px solid rgba( 255, 255, 255, 0.3);
    /* 阴影 */
    box-shadow: 0 2px 20px rgba(208, 216, 222, 1);
}
.ai-wrap .ai-audio-control:hover, .ai-wrap .ai-btn:hover, .ai-wrap .ai-btn.ai-btn-active:hover{
    background: rgba( 255, 255, 255, 0.35);
}

/*控制按钮*/
.ai-wrap .ai-btn{
    background-color: transparent;
    background: transparent;
    border-radius: 10px;
    border: transparent;
}

/*循环播放按钮,选中状态*/
.ai-wrap .ai-btn.ai-btn-active{
    background-color:transparent;
}
.ai-wrap .ai-btn.ai-btn-active svg{
    fill: #66ccff;
}

/*音量条*/
.ai-wrap .ai-volume-bar {
    background-color: transparent;
    border-right: transparent;
}
.ai-wrap .ai-volume-bar:before {
    background-color: #b7eee7;
}
.ai-wrap .ai-volume-bar.ai-volume-bar-active:before{
    background-color: #d9f6f3;
}

/*进度条*/
.ai-wrap .ai-track-progress-bar{
    border-radius: 50px;
    background-color: #b8eee7;
}
.ai-wrap .ai-track-progress{
    border-radius: 50px;
    background-color: #66ccff;
}

/*滚动条*/
.ai-wrap .ai-scroll-wrap>div:last-child{
    background-color: #b5eee4;
}
.ai-wrap .ai-scroll-wrap>div:last-child div{
    background-color: #d9f6f3!important;
}
</style>

使用方法:


思路

<style>
.ai-wrap {
    background-color: #66ccff;
}
</style>

疑难杂症

如果想改的元素没有类名也没有id怎么办?

.ai-wrap .ai-scroll-wrap>div:last-child div {
    background-color: #f70f5d!important;
}
.ai-wrap .ai-scroll-wrap>div:last-child div {
    background-color: #66ccff!important;
}

  1. Arnoldscava说道:

    buying prescription drugs in mexico online medication from mexico pharmacy mexican rx online

  2. Arnoldscava说道:

    mexican pharmaceuticals online mexico drug stores pharmacies buying prescription drugs in mexico

  3. RichardMonge说道:

    https://mexicandeliverypharma.online/# mexican drugstore online

  4. DominicHOr说道:

    п»їbest mexican online pharmacies: medicine in mexico pharmacies – medicine in mexico pharmacies

  5. RichardMonge说道:

    https://mexicandeliverypharma.online/# mexican drugstore online

  6. DominicHOr说道:

    medicine in mexico pharmacies: mexican online pharmacies prescription drugs – mexico drug stores pharmacies

  7. Waynetar说道:

    mexican rx online: pharmacies in mexico that ship to usa – mexico pharmacies prescription drugs

  8. Arnoldscava说道:

    purple pharmacy mexico price list mexico drug stores pharmacies mexico pharmacy

  9. Arnoldscava说道:

    п»їbest mexican online pharmacies pharmacies in mexico that ship to usa mexico pharmacy

  10. DominicHOr说道:

    best online pharmacies in mexico: purple pharmacy mexico price list – pharmacies in mexico that ship to usa

  11. Waynetar说道:

    buying prescription drugs in mexico: buying prescription drugs in mexico online – purple pharmacy mexico price list

  12. klikx in London说道:

    Aw, this was a really nice post. Taking a few minutes and actual effort to create a superb article… but what can I say… I procrastinate a whole lot and don’t seem to get nearly anything done.

  13. klikx in London说道:

    An interesting discussion is definitely worth comment. I do think that you ought to write more about this subject, it may not be a taboo subject but typically people do not speak about such topics. To the next! Best wishes!

  14. Hi! I just wish to offer you a big thumbs up for your excellent information you have got here on this post. I’ll be coming back to your site for more soon.

  15. RobertLAr说道:

    can i order generic clomid for sale: how can i get generic clomid without insurance – can you get generic clomid for sale

  16. Jamesjer说道:

    amoxicillin online purchase: amoxicillin 500 mg for sale – amoxicillin without a prescription

  17. Good day! I just wish to give you a huge thumbs up for the great info you have got right here on this post. I am coming back to your web site for more soon.

  18. Vũ quang huy说道:

    Can I just say what a relief to uncover an individual who really knows what they are discussing on the internet. You definitely understand how to bring a problem to light and make it important. A lot more people really need to check this out and understand this side of your story. I can’t believe you’re not more popular because you most certainly possess the gift.

  19. YTMP3说道:

    Good info. Lucky me I came across your blog by chance (stumbleupon). I have saved as a favorite for later.

  20. Great post. I’m going through many of these issues as well..

  21. Hi there! This blog post could not be written much better! Looking at this article reminds me of my previous roommate! He always kept preaching about this. I’ll forward this post to him. Pretty sure he’ll have a good read. Many thanks for sharing!

  22. Hi, I do believe this is a great web site. I stumbledupon it 😉 I’m going to return once again since i have book marked it. Money and freedom is the best way to change, may you be rich and continue to help others.

  23. 78win说道:

    Very good information. Lucky me I found your site by chance (stumbleupon). I’ve saved as a favorite for later!

  24. 78win说道:

    Great web site you have got here.. It’s difficult to find good quality writing like yours these days. I honestly appreciate individuals like you! Take care!!

  25. Toshiko Laneaux说道:

    I used to be able to find good info from your blog posts.

  26. Tran Shoddie说道:

    Pretty! This has been an extremely wonderful post. Thanks for supplying these details.

  27. Jamesjer说道:

    where to buy clomid online: how to buy clomid for sale – where can i get clomid pill

  28. Jamesjer说道:

    how to get amoxicillin: where to buy amoxicillin – where can you get amoxicillin

  29. Hayden Dagnan说道:

    When I originally commented I seem to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve four emails with the exact same comment. Is there a way you are able to remove me from that service? Many thanks.

  30. Otis Rovell说道:

    I was excited to find this site. I want to to thank you for ones time just for this fantastic read!! I definitely liked every bit of it and I have you book marked to see new stuff on your blog.

  31. Jamesjer说道:

    buy ciprofloxacin over the counter: ciprofloxacin generic – cipro ciprofloxacin

  32. my review here说道:

    Way cool! Some very valid points! I appreciate you penning this post and also the rest of the site is also really good.

  33. Jamesjer说道:

    doxycycline rx coupon: doxycycline 100mg online – cheapest doxycycline without prescrtiption

  34. ThomasInace说道:

    http://paxloviddelivery.pro/# buy paxlovid online

  35. ThomasInace说道:

    https://amoxildelivery.pro/# generic amoxicillin over the counter

  36. Jamesjer说道:

    buy paxlovid online: paxlovid covid – Paxlovid over the counter

  37. Jamesjer说道:

    buy cipro cheap: ciprofloxacin 500mg buy online – ciprofloxacin generic price

  38. lehenga choli说道:

    An intriguing discussion is worth comment. There’s no doubt that that you should write more on this issue, it may not be a taboo matter but generally people do not talk about these subjects. To the next! All the best.

  39. ThomasInace说道:

    http://paxloviddelivery.pro/# buy paxlovid online

  40. I seriously love your website.. Excellent colors & theme. Did you make this site yourself? Please reply back as I’m trying to create my own site and want to find out where you got this from or exactly what the theme is called. Kudos!

  41. The next time I read a blog, Hopefully it does not fail me just as much as this particular one. After all, Yes, it was my choice to read, however I truly believed you would have something useful to talk about. All I hear is a bunch of whining about something you could possibly fix if you were not too busy searching for attention.

  42. Good site you have here.. It’s difficult to find high-quality writing like yours nowadays. I truly appreciate people like you! Take care!!

  43. Jamesjer说道:

    875 mg amoxicillin cost: amoxicillin pills 500 mg – amoxicillin online without prescription

  44. ThomasInace说道:

    http://clomiddelivery.pro/# cheap clomid pill

  45. Jamesjer说道:

    amoxicillin 500mg without prescription: amoxicillin online no prescription – 875 mg amoxicillin cost

  46. ThomasInace说道:

    http://doxycyclinedelivery.pro/# doxycycline tablets online india

  47. iptv说道:

    I could not refrain from commenting. Exceptionally well written!

  48. iptv说道:

    Hi! I just wish to offer you a big thumbs up for the excellent information you have got right here on this post. I am returning to your blog for more soon.

  49. ThomasInace说道:

    https://clomiddelivery.pro/# can you get cheap clomid price

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注