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

/ 6,361评论 / 25585阅读 / 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. Frankloole说道:

    https://ozempic.art/# ozempic coupon

  2. Ramonfrive说道:

    semaglutide online: buy semaglutide online – buy rybelsus online

  3. HaroldDon说道:

    cheapest rybelsus pills: buy semaglutide pills – rybelsus pill

  4. BarryPow说道:

    https://rybelsus.shop/# semaglutide cost

  5. Frankloole说道:

    http://rybelsus.shop/# rybelsus pill

  6. Jeremycot说道:

    semaglutide tablets rybelsus price rybelsus price

  7. HaroldDon说道:

    semaglutide tablets: cheapest rybelsus pills – semaglutide cost

  8. It’s nearly impossible to find knowledgeable people about this topic, but you seem like you know what you’re talking about! Thanks

  9. This blog was… how do you say it? Relevant!! Finally I’ve found something which helped me. Many thanks.

  10. Ramonfrive说道:

    rybelsus cost: buy semaglutide online – semaglutide online

  11. BarryPow说道:

    http://ozempic.art/# Ozempic without insurance

  12. BarryPow说道:

    http://rybelsus.shop/# cheapest rybelsus pills

  13. Frankloole说道:

    https://rybelsus.shop/# rybelsus pill

  14. Ramonfrive说道:

    semaglutide cost: buy semaglutide online – buy semaglutide pills

  15. CharlesCah说道:

    pharmacie en ligne france livraison internationale Acheter Cialis pharmacie en ligne france livraison belgique

  16. HeathGlact说道:

    Achat mГ©dicament en ligne fiable: acheter mГ©dicament en ligne sans ordonnance – pharmacie en ligne france livraison internationale

  17. HeathGlact说道:

    pharmacie en ligne sans ordonnance: Acheter Cialis – pharmacie en ligne france livraison belgique

  18. HeathGlact说道:

    Viagra prix pharmacie paris: Viagra prix – Viagra femme ou trouver

  19. HeathGlact说道:

    pharmacie en ligne france fiable: Cialis sans ordonnance 24h – pharmacie en ligne france fiable

  20. Stephenmig说道:

    http://clssansordonnance.icu/# pharmacie en ligne pas cher

  21. CharlesCah说道:

    pharmacie en ligne france livraison belgique Medicaments en ligne livres en 24h pharmacie en ligne avec ordonnance

  22. HeathGlact说道:

    Pharmacie en ligne livraison Europe: pharmacies en ligne certifiГ©es – pharmacie en ligne sans ordonnance

  23. HeathGlact说道:

    pharmacie en ligne sans ordonnance: Cialis prix en pharmacie – vente de mГ©dicament en ligne

  24. This is a topic which is close to my heart… Best wishes! Exactly where can I find the contact details for questions?

  25. Stephenmig说道:

    https://pharmaciepascher.pro/# pharmacie en ligne france livraison internationale

  26. HeathGlact说道:

    pharmacie en ligne: cialis prix – pharmacie en ligne france livraison belgique

  27. HeathGlact说道:

    Pharmacie en ligne livraison Europe: Pharmacies en ligne certifiees – acheter mГ©dicament en ligne sans ordonnance

  28. There’s certainly a great deal to find out about this subject. I like all of the points you have made.

  29. weed pen说道:

    When I originally commented I appear to have clicked on the -Notify me when new comments are added- checkbox and now every time a comment is added I receive four emails with the exact same comment. Perhaps there is a way you can remove me from that service? Thanks.

  30. CharlesCah说道:

    Viagra 100mg prix viagra en ligne Viagra vente libre allemagne

  31. HeathGlact说道:

    vente de mГ©dicament en ligne: cialis sans ordonnance – trouver un mГ©dicament en pharmacie

  32. HeathGlact说道:

    pharmacie en ligne france livraison belgique: cialis sans ordonnance – п»їpharmacie en ligne france

  33. Good post. I learn something totally new and challenging on websites I stumbleupon everyday. It will always be interesting to read through articles from other writers and practice something from their websites.

  34. aynaligecit.com说道:

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

  35. Stephenmig说道:

    https://pharmaciepascher.pro/# pharmacie en ligne livraison europe

  36. HeathGlact说道:

    pharmacie en ligne fiable: pharmacie en ligne avec ordonnance – acheter mГ©dicament en ligne sans ordonnance

  37. football说道:

    There’s definately a lot to learn about this subject. I like all of the points you have made.

  38. HeathGlact说道:

    pharmacie en ligne france fiable: Acheter Cialis – Pharmacie en ligne livraison Europe

  39. May I simply say what a relief to discover someone that actually knows what they’re discussing on the internet. You definitely know how to bring a problem to light and make it important. More people ought to check this out and understand this side of the story. I was surprised that you aren’t more popular because you certainly possess the gift.

  40. CharlesCah说道:

    pharmacie en ligne avec ordonnance pharmacie en ligne pas cher pharmacie en ligne fiable

  41. I used to be able to find good info from your articles.

  42. JamesDrine说道:

    mexico drug stores pharmacies: medication from mexico – reputable mexican pharmacies online
    buying prescription drugs in mexico online

  43. HeathGlact说道:

    pharmacies en ligne certifiГ©es: pharmacie en ligne – pharmacie en ligne france livraison internationale

  44. HeathGlact说道:

    acheter mГ©dicament en ligne sans ordonnance: Acheter Cialis – pharmacie en ligne france livraison internationale

  45. I needed to thank you for this very good read!! I absolutely enjoyed every bit of it. I have got you book-marked to look at new stuff you post…

  46. Right here is the perfect webpage for everyone who wishes to find out about this topic. You understand so much its almost hard to argue with you (not that I actually will need to…HaHa). You definitely put a fresh spin on a subject which has been discussed for a long time. Great stuff, just wonderful.

  47. When I initially left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I recieve 4 emails with the same comment. There has to be a means you are able to remove me from that service? Kudos.

  48. Michaelged说道:

    onlinepharmaciescanada com: my canadian pharmacy – adderall canadian pharmacy

  49. JamesDrine说道:

    п»їbest mexican online pharmacies: medication from mexico – mexican drugstore online
    best online pharmacies in mexico

发表回复

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