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

/ 4,437评论 / 17653阅读 / 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. Timothyomide说道:

    http://cialisgenerico.life/# Farmacia online miglior prezzo

  2. Timothyomide说道:

    http://kamagrait.pro/# farmacia online

  3. RandyBulty说道:

    farmaci senza ricetta elenco: avanafil 100 mg prezzo – п»їFarmacia online migliore

  4. RandyBulty说道:

    viagra originale in 24 ore contrassegno: viagra farmacia – viagra generico recensioni

  5. I’m impressed, I have to admit. Rarely do I come across a blog that’s equally educative and amusing, and without a doubt, you have hit the nail on the head. The problem is an issue that not enough folks are speaking intelligently about. I’m very happy I stumbled across this in my hunt for something relating to this.

  6. RandyBulty说道:

    migliori farmacie online 2024: Tadalafil generico migliore – comprare farmaci online all’estero

  7. RandyBulty说道:

    acquisto farmaci con ricetta: Farmacie che vendono Cialis senza ricetta – farmacie online affidabili

  8. Timothyomide说道:

    https://viagragenerico.site/# viagra acquisto in contrassegno in italia

  9. Whitescreen55说道:

    Very good post! We will be linking to this great post on our website. Keep up the good writing.

  10. Timothyomide说道:

    http://viagragenerico.site/# esiste il viagra generico in farmacia

  11. RandyBulty说道:

    migliori farmacie online 2024: Farmacia online piu conveniente – Farmacia online piГ№ conveniente

  12. Whitescreen56说道:

    Everything is very open with a clear clarification of the challenges. It was really informative. Your site is very useful. Many thanks for sharing!

  13. RandyBulty说道:

    alternativa al viagra senza ricetta in farmacia: viagra prezzo – viagra originale in 24 ore contrassegno

  14. tautan web说道:

    Saved as a favorite, I love your site!

  15. RandyBulty说道:

    acquistare farmaci senza ricetta: Cialis generico 5 mg prezzo – farmacie online autorizzate elenco

  16. RandyBulty说道:

    pillole per erezione immediata: viagra online siti sicuri – pillole per erezione immediata

  17. Timothyomide说道:

    https://viagragenerico.site/# pillole per erezione in farmacia senza ricetta

  18. An interesting discussion is worth comment. I believe that you ought to write more on this issue, it might not be a taboo subject but typically people don’t speak about such topics. To the next! Cheers!

  19. RandyBulty说道:

    acquisto farmaci con ricetta: Farmacie che vendono Cialis senza ricetta – top farmacia online

  20. Matthewnouts说道:

    india buy prednisone online: 60 mg prednisone daily – buy prednisone online australia

  21. Matthewnouts说道:

    buy cheap propecia no prescription: buying generic propecia tablets – buying propecia without a prescription

  22. LewisToite说道:

    https://cytotecbestprice.pro/# cytotec pills buy online

  23. Matthewnouts说道:

    cytotec buy online usa: buy cytotec over the counter – Cytotec 200mcg price

  24. baby hats说道:

    Everything is very open with a really clear clarification of the challenges. It was definitely informative. Your website is extremely helpful. Many thanks for sharing.

  25. Matthewnouts说道:

    Cytotec 200mcg price: buy cytotec online fast delivery – buy cytotec pills online cheap

  26. Howdy! I simply want to give you a huge thumbs up for the great info you have right here on this post. I will be returning to your web site for more soon.

  27. Matthewnouts说道:

    buy cytotec: п»їcytotec pills online – buy cytotec pills

  28. LewisToite说道:

    https://propeciabestprice.pro/# get cheap propecia pill

  29. Matthewnouts说道:

    buy propecia without prescription: buying cheap propecia – propecia without insurance

  30. Matthewnouts说道:

    Abortion pills online: buy misoprostol over the counter – buy cytotec over the counter

  31. Matthewnouts说道:

    buy cheap generic zithromax: buy zithromax without prescription online – zithromax tablets

  32. Matthewnouts说道:

    azithromycin zithromax: zithromax 250 mg – zithromax over the counter

  33. Matthewnouts说道:

    can you buy zithromax over the counter: zithromax 500 – where can i buy zithromax medicine

  34. LewisToite说道:

    https://propeciabestprice.pro/# get propecia without insurance

  35. Matthewnouts说道:

    tamoxifen citrate pct: tamoxifen therapy – benefits of tamoxifen

  36. LewisToite说道:

    https://prednisonebestprice.pro/# medicine prednisone 5mg

  37. KevinBlupt说道:

    ordering prednisone: prednisone without prescription 10mg – buy prednisone without rx

  38. Hi, I do believe this is an excellent website. I stumbledupon it 😉 I’m going to return yet again since i have book-marked it. Money and freedom is the best way to change, may you be rich and continue to help other people.

  39. Matthewnouts说道:

    how to get nolvadex: tamoxifen blood clots – tamoxifen skin changes

  40. Matthewnouts说道:

    propecia buy: get cheap propecia no prescription – cost of generic propecia without dr prescription

  41. Robertperma说道:

    generic zithromax 500mg buy zithromax 1000mg online zithromax over the counter

  42. Robertperma说道:

    zithromax 500 tablet zithromax capsules australia how to buy zithromax online

  43. LewisToite说道:

    https://zithromaxbestprice.pro/# zithromax prescription

  44. LewisToite说道:

    https://cytotecbestprice.pro/# Abortion pills online

  45. PatrickHindy说道:

    http://prednisonebestprice.pro/# 10 mg prednisone

  46. Matthewnouts说道:

    prednisone for sale in canada: prednisone without prescription 10mg – prednisone canada

  47. PatrickHindy说道:

    http://zithromaxbestprice.pro/# buy zithromax online with mastercard

  48. Matthewnouts说道:

    prednisone 10 mg over the counter: prednisone canada – prednisone brand name in india

  49. Robertperma说道:

    buy generic propecia pill cost of propecia no prescription cost of propecia no prescription

发表回复

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