css - Wordpress 3.6: Mediaelement (audio) hide elements -


with mediaelement.js wordpress has native audio/video player. problem customization , don't want change core mediaelement.css.

the standard theme looks this.

this page shows how modify settings. changed little..

.mejs-time-rail,  .mejs-time-total, .mejs-currenttime, .mejs-duration,  .mejs-volume-button,  .mejs-horizontal-volume-slider, {     display: none !important; }  .mejs-container {     width: 26px !important; } 

..to hide except play , pause button. additionally tried add short text right/left player atm not shown.

[audio mp3="audio_path"]i important message[/audio] 

the code above hides controls except play button, shrinks width text not visible. ideas do?

to hide except play , pause button try:

css

.mejs-time, .mejs-time-rail, .mejs-volume-button, .mejs-mute, .mejs-horizontal-volume-slider {     display: none !important; } .mejs-container {     width: 26px !important; } 

because of 26px maybe text not shown properly. move outside maybe useful in case.

[audio mp3="audio_path"][/audio] important message 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -