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

/ 6,391评论 / 25683阅读 / 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. Nicolasburne说道:

    http://amoxil.llc/# amoxicillin 500 coupon

  2. Michaelexiny说道:

    ivermectin over the counter buy stromectol online minocycline for acne

  3. Stevenmut说道:

    http://stromectol.agency/# what is minocycline used for
    zithromax 500 mg lowest price drugstore online

  4. Michaelexiny说道:

    stromectol tablets uk order stromectol ivermectin generic name

  5. Matthewobjet说道:

    neurontin 2400 mg: cheapest gabapentin – generic neurontin 300 mg

  6. Matthewobjet说道:

    neurontin 400mg: gabapentin best price – generic gabapentin

  7. Mahalia Derise说道:

    I must thank you for the efforts you have put in penning this website. I really hope to see the same high-grade blog posts by you later on as well. In fact, your creative writing abilities has inspired me to get my very own blog now 😉

  8. Samueltib说道:

    https://stromectol.agency/# minocycline tablets

  9. Samueltib说道:

    http://semaglutide.win/# Buy semaglutide pills

  10. Stevenmut说道:

    https://semaglutide.win/# Buy compounded semaglutide online
    purchase zithromax z-pak

  11. Michaelexiny说道:

    where can i buy amoxicillin without prec Amoxicillin For sale can i buy amoxicillin over the counter in australia

  12. Nicolasburne说道:

    http://zithromax.company/# can you buy zithromax over the counter in mexico

  13. Stevenmut说道:

    http://semaglutide.win/# rybelsus cost
    zithromax cost australia

  14. Michaelexiny说道:

    dynacin minocycline order stromectol minocycline generic name

  15. Matthewobjet说道:

    ivermectin cost canada: stromectol for sale – ivermectin oral 0 8

  16. Nicolasburne说道:

    https://amoxil.llc/# amoxicillin 500mg

  17. Matthewobjet说道:

    purchase neurontin canada: order gabapentin – neurontin cream

  18. Stevenmut说道:

    https://zithromax.company/# zithromax prescription
    can you buy zithromax over the counter

  19. Nicolasburne说道:

    https://amoxil.llc/# amoxicillin 500mg price canada

  20. Michaelexiny说道:

    ivermectin 3 mg dose minocycline for uti ivermectin 1mg

  21. Samueltib说道:

    http://zithromax.company/# buy zithromax online with mastercard

  22. Michaelexiny说道:

    minocycline 100mg for acne order stromectol minocycline acne worse before better

  23. Stevenmut说道:

    https://gabapentin.auction/# buy neurontin 300 mg
    zithromax 500 mg lowest price drugstore online

  24. Nicolasburne说道:

    https://amoxil.llc/# amoxicillin medicine over the counter

  25. Matthewobjet说道:

    buy minocycline 50 mg for humans: order stromectol – ivermectin 50mg/ml

  26. Matthewobjet说道:

    zithromax prescription in canada: generic zithromax – generic zithromax online paypal

  27. Nicolasburne说道:

    https://zithromax.company/# order zithromax over the counter

  28. Stevenmut说道:

    https://stromectol.agency/# stromectol where to buy
    zithromax generic cost

  29. Michaelexiny说道:

    buying amoxicillin in mexico Amoxicillin For sale generic amoxicillin 500mg

  30. Stevenmut说道:

    https://zithromax.company/# zithromax azithromycin
    zithromax online usa

  31. Nicolasburne说道:

    http://gabapentin.auction/# neurontin price india

  32. Matthewobjet说道:

    ivermectin usa: stromectol for sale – ivermectin tablet 1mg

  33. Samueltib说道:

    http://amoxil.llc/# amoxicillin canada price

  34. Samueltib说道:

    https://semaglutide.win/# cheap Rybelsus 14 mg

  35. Matthewobjet说道:

    amoxicillin order online no prescription: buy amoxil – amoxicillin 500mg capsule

  36. Nicolasburne说道:

    http://semaglutide.win/# Semaglutide pharmacy price

  37. Stevenmut说道:

    https://semaglutide.win/# Buy compounded semaglutide online
    buy cheap generic zithromax

  38. Michaelexiny说道:

    neurontin brand name 800mg best price gabapentin price generic neurontin 600 mg

  39. Having read this I believed it was really enlightening. I appreciate you finding the time and effort to put this article together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worth it.

  40. Michaelexiny说道:

    amoxicillin 250 mg capsule amoxicillin cheapest price can i buy amoxicillin online

  41. After checking out a handful of the blog posts on your web site, I really appreciate your technique of writing a blog. I book-marked it to my bookmark webpage list and will be checking back soon. Please check out my website too and let me know your opinion.

  42. Stevenmut说道:

    https://gabapentin.auction/# neurontin india
    zithromax 500mg price

  43. Nicolasburne说道:

    https://amoxil.llc/# amoxicillin capsule 500mg price

  44. Matthewobjet说道:

    zithromax for sale us: zithromax for sale – cost of generic zithromax

  45. Stevenmut说道:

    https://semaglutide.win/# rybelsus
    where to get zithromax

  46. Michaelexiny说道:

    neurontin 600 mg pill cheapest gabapentin neurontin for sale

  47. Samueltib说道:

    https://gabapentin.auction/# neurontin 300 mg caps

发表回复

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