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

/ 6,393评论 / 25696阅读 / 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. Brandonnar说道:

    mexican online pharmacies prescription drugs п»їbest mexican online pharmacies mexico drug stores pharmacies

  2. Richardjab说道:

    mexican pharmaceuticals online: п»їbest mexican online pharmacies – mexican border pharmacies shipping to usa

  3. Hey there! I simply would like to offer you a big thumbs up for your excellent info you have right here on this post. I’ll be coming back to your blog for more soon.

  4. Server-GSA说道:

    Купить безабузный server/ВПС/ВДС под парсинг, постинг, разгадывание каптчи.

    https://t.me/s/server_xevil_xrumer_vpsvds_zenno

    Сервер для Xrumer |Xevil | GSA | Xneolinks | A-parser | ZennoPoster | BAS | Антидетект браузер Dolphin

    – Windows – 2022, 2019, 2016, 2012 R2
    – Отлично подходит под GSA Search Engine Ranker
    – Автоматическая установка Windows – бесплатно
    – Супер (аптайм, скорость, пинг, нагрузка)
    – Быстрые серверы с NVMe.
    – Дата-центр в Москве и Амстердаме
    – Outline VPN, WireGuard VPN, IPsec VPN.
    – Ubuntu, Debian, CentOS, Oracle 9 – бесплатно
    – Для сервера сеть на скорости 1 Гбит!
    – FASTPANEL и HestiaCP – бесплатно
    – Отлично подходит под Xneolinks
    – Отлично подходит под XRumer + XEvil
    – Более 15 000 сервер уже в работе
    – Отлично подходит под CapMonster
    – Почасовая оплата
    – Управляйте серверами на лету.
    – Круглосуточная техническая поддержка – бесплатно
    – Отлично подходит под A-Parser
    – Windows – 2012 R2, 2016, 2019, 2022 – бесплатно
    – Скорость порта подключения к сети интернет — 1000 Мбит/сек
    – Возможность арендовать сервер на 1 час или 1 сутки
    – Мгновенное развёртывание сервера в несколько кликов – бесплатно

  5. Richardjab说道:

    indianpharmacy com: world pharmacy india – india pharmacy

  6. DennisKek说道:

    best ed pills online: impotance – buy erection pills

  7. GregorySnino说道:

    men ed https://drugs24.pro/# natural cures for ed

  8. I’m very happy to discover this website. I want to to thank you for ones time due to this fantastic read!! I definitely loved every little bit of it and I have you bookmarked to see new things in your website.

  9. Brandonnar说道:

    indian pharmacy paypal world pharmacy india india pharmacy mail order

  10. DennisKek说道:

    ed pills online: drugs and medications – sildenafil without a doctor’s prescription

  11. GregorySnino说道:

    pills for ed https://drugs24.pro/# male ed pills

  12. porn说道:

    You are so awesome! I do not believe I have read through a single thing like that before. So good to find somebody with a few original thoughts on this subject. Seriously.. thank you for starting this up. This website is one thing that’s needed on the internet, someone with a little originality.

  13. Brandonnar说道:

    best online pharmacy india india pharmacy top 10 online pharmacy in india

  14. Richardjab说道:

    natural pills for ed: dog antibiotics without vet prescription – ed products

  15. Richardjab说道:

    best online pharmacies in mexico: mexican mail order pharmacies – mexican pharmaceuticals online

  16. DennisKek说道:

    buying prescription drugs in mexico online: mexico pharmacies prescription drugs – best online pharmacies in mexico

  17. AgustinFar说道:

    http://drugs24.pro/# prices of viagra at walmart
    india online pharmacy

  18. AgustinFar说道:

    https://mexicanpharm24.pro/# reputable mexican pharmacies online
    indian pharmacy paypal

  19. GregorySnino说道:

    best pharmacy online https://indianpharmdelivery.com/# best india pharmacy

  20. Brandonnar说道:

    cheap drugs online vitality ed pills errection problem cure

  21. I absolutely love your site.. Great colors & theme. Did you make this site yourself? Please reply back as I’m looking to create my very own blog and want to know where you got this from or just what the theme is named. Many thanks!

  22. Stevenmut说道:

    http://zithromax.company/# zithromax online
    zithromax

  23. Matthewobjet说道:

    buy rybelsus: rybelsus generic – order Rybelsus for weight loss

  24. Michaelexiny说道:

    amoxicillin 500mg amoxicillin cheapest price amoxicillin 875 125 mg tab

  25. Matthewobjet说道:

    rybelsus generic: Rybelsus 14 mg price – Buy compounded semaglutide online

  26. Stevenmut说道:

    https://amoxil.llc/# canadian pharmacy amoxicillin
    zithromax 250 mg

  27. Nicolasburne说道:

    https://zithromax.company/# zithromax 500 mg lowest price pharmacy online

  28. Michaelexiny说道:

    neurontin cream cheapest gabapentin neurontin 200

  29. Stevenmut说道:

    http://stromectol.agency/# stromectol tab 3mg
    zithromax 1000 mg online

  30. Matthewobjet说道:

    amoxicillin azithromycin: cheapest amoxil – amoxicillin generic

  31. Michaelexiny说道:

    buy rybelsus Semaglutide pharmacy price rybelsus generic

  32. Matthewobjet说道:

    can i buy neurontin over the counter: gabapentin price – neurontin 3

  33. Samueltib说道:

    https://zithromax.company/# zithromax online australia

  34. Samueltib说道:

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

  35. Nicolasburne说道:

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

  36. Stevenmut说道:

    https://gabapentin.auction/# neurontin 300 600 mg
    zithromax 250 mg australia

  37. Michaelexiny说道:

    cheap Rybelsus 14 mg cheap Rybelsus 14 mg Rybelsus 7mg

  38. Stevenmut说道:

    https://semaglutide.win/# buy rybelsus
    order zithromax without prescription

  39. Matthewobjet说道:

    amoxicillin online no prescription: amoxil best price – generic amoxicillin online

  40. Michaelexiny说道:

    canada neurontin 100mg discount gabapentin for sale neurontin 200 mg price

  41. Matthewobjet说道:

    minocycline hcl: stromectol for sale – cost of ivermectin pill

  42. Stevenmut说道:

    http://stromectol.agency/# stromectol medicine
    where can you buy zithromax

  43. Michaelexiny说道:

    ivermectin canada order stromectol ivermectin pills canada

  44. Stevenmut说道:

    http://amoxil.llc/# amoxicillin 500mg capsules antibiotic
    generic zithromax india

  45. Michaelexiny说道:

    stromectol price in india cheapest stromectol minocycline antibiotic

  46. Matthewobjet说道:

    neurontin brand coupon: cheapest gabapentin – neurontin generic cost

  47. Matthewobjet说道:

    cheap Rybelsus 14 mg: rybelsus – rybelsus generic

  48. Nicolasburne说道:

    http://gabapentin.auction/# neurontin 400 mg cost

  49. Stevenmut说道:

    https://zithromax.company/# zithromax online
    how to get zithromax over the counter

发表回复

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