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

/ 5,683评论 / 23796阅读 / 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. Brandenven说道:

    how to get clomid for sale: clomid online – how to get cheap clomid tablets

  2. Introducing to you the most prestigious online entertainment address today. Visit now to experience now!

  3. StevenWearo说道:

    amoxicillin 500mg buy online uk: Amoxicillin for sale – where can i buy amoxicillin over the counter uk

  4. Brandenven说道:

    cost of generic clomid pills: rexpharm – order clomid price

  5. visit website说道:

    Hi there! This blog post couldn’t be written much better! Looking through this post reminds me of my previous roommate! He constantly kept talking about this. I most certainly will send this article to him. Pretty sure he’ll have a very good read. I appreciate you for sharing!

  6. Derekjup说道:

    can you buy generic clomid tablets: buy clomid – get cheap clomid for sale

  7. Brandenven说道:

    how to get generic clomid for sale: buy clomid – can i get cheap clomid tablets

  8. Bradleyarrip说道:

    prednisone 20 mg in india can you buy prednisone over the counter uk prednisone without prescription

  9. useful reference说道:

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

  10. Derekjup说道:

    cheap priligy: buy priligy – cheap priligy

  11. Bradleyarrip说道:

    how to get generic clomid buy clomid can i order generic clomid without rx

  12. Brandenven说道:

    buy priligy: priligy – priligy max pharm

  13. Brandenven说道:

    amoxicillin tablets in india: Amoxicillin for sale – buy amoxicillin 500mg uk

  14. DanielArill说道:

    where to buy amoxicillin 500mg https://clomidrexpharm.com/# where to buy generic clomid no prescription

  15. Bradleyarrip说道:

    prednisone coupon cheap prednisone where can i buy prednisone online without a prescription

  16. StevenWearo说道:

    cost of cheap clomid tablets: buy clomid – how to get generic clomid

  17. Bradleyarrip说道:

    priligy dapoxetine online Priligy tablets

  18. Derekjup说道:

    get generic clomid without prescription: cost of clomid pill – cost of clomid online

  19. Brandenven说道:

    cortisol prednisone: prednisone ray pharm – prednisone 20mg online

  20. DanielArill说道:

    prescription for amoxicillin https://prednisoneraypharm.com/# prednisone 1 mg daily

  21. I could not refrain from commenting. Exceptionally well written.

  22. Brandenven说道:

    amoxicillin 500 mg without prescription: amoxil com pharm – can you purchase amoxicillin online

  23. Bradleyarrip说道:

    prednisone over the counter australia ray pharm buy prednisone online usa

  24. porn说道:

    This website was… how do you say it? Relevant!! Finally I have found something that helped me. Thank you.

  25. StevenWearo说道:

    prednisone daily: order Prednisone – prednisone 10mg price in india

  26. Bradleyarrip说道:

    can i purchase cheap clomid without rx clomid online where to buy clomid

  27. porn说道:

    I really like looking through an article that can make men and women think. Also, thanks for allowing me to comment.

  28. DanielArill说道:

    rexall pharmacy amoxicillin 500mg https://amoxilcompharm.com/# amoxicillin 500 capsule

  29. Brandenven说道:

    order amoxicillin online uk: cheap amoxil – over the counter amoxicillin

  30. Bradleyarrip说道:

    amoxicillin 500mg without prescription amoxicillin 500 mg tablet amoxicillin 500mg capsules uk

  31. Derekjup说道:

    prednisone 5 mg tablet without a prescription: prednisone 60 mg daily – prednisone pill 10 mg

  32. StevenWearo说道:

    can i buy prednisone online in uk: order Prednisone – prednisone 5443

  33. Bradleyarrip说道:

    buy dapoxetine online max pharm buy priligy max pharm

  34. DanielArill说道:

    amoxicillin over counter http://prednisoneraypharm.com/# prednisone without rx

  35. StevenWearo说道:

    dapoxetine price: priligy maxpharm – dapoxetine price

  36. Bradleyarrip说道:

    https://mexicanpharmgate.com/# mexico pharmacies prescription drugs

  37. Bradleyarrip说道:

    https://indianpharmacyeasy.com/# world pharmacy india

  38. LarryHer说道:

    prescription meds without the prescriptions: Canada pharmacy – ed treatments

  39. GlennSeade说道:

    Online medicine home delivery Indian pharmacy to USA indian pharmacy paypal

  40. Jefferyswava说道:

    ed problems treatment: Canadian pharmacy best prices – natural drugs for ed

  41. GlennSeade说道:

    mexican mail order pharmacies medicines mexico rx online mexican rx online

  42. Jefferyswava说道:

    best otc ed pills: canadian pharmacy drugs gate – ed medications

  43. This site definitely has all of the information I wanted concerning this subject and didn’t know who to ask.

  44. Bradleyarrip说道:

    http://mexicanpharmgate.com/# mexico drug stores pharmacies

  45. LarryHer说道:

    cheapest online pharmacy india: Indian online pharmacy ship to usa – indianpharmacy com

  46. Bradleyarrip说道:

    https://canadiandrugsgate.com/# buy prescription drugs

  47. Jefferyswava说道:

    mexican pharmaceuticals online: mexican pharmacy – mexican pharmaceuticals online

  48. Bradleyarrip说道:

    http://mexicanpharmgate.com/# mexican mail order pharmacies

  49. GlennSeade说道:

    canadian drug pharmacy canadian pharmacy drugs gate buy drug online

发表回复

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