This will allow you to have more control on icons, responsivity, mouse hover behavior etc… You can take one of the included theme as reference. There is a lot of dedicated CSS selectors for that. I strongly encourage you to do that as custom CSS is the only way to make it fit your theme perfectly. You can deactivate the default WaveSurder-WP theme, and use your own theme style. Because this icon-font is already used in a lot of themes and plugins, you can deactivate this custom font if needed. These are included in the plugin as a small custom font. The default style requires some icons of Font-Awesome 1.0. Pressing play on a player automatically set all the others on the same page to pause.See examples on the WaveSurfer-WP-Init GitHub repository.Ĭheck this Gist for demos of how to use the filters. use the wavesurfer-wp-init JavaScript event handler to render the player on custom events, like after click on a button.use the wavesurfer_wp_shortcode_data filter if you want to add custom waveform data attributes.add shortcode attributes conditionally with the filter wavesurfer_wp_shortcode_attributes.Global colors and style settings can be overridden locally by dedicated shortcode attributes.Īlso, there is some attributes accessible at shortcode level:įor more advanced customization, with a custom site-plugin, you can: Safe deactivation: if you deactivate the plugin, your shortcode will fallback to the WordPress default audio player.It supports every audio format supported by WordPress (wav, ogg, mp3, m4a).You still have the default player in the Visual Editor (not just shortcode).It can display a mix of the different audio channels (for podcast, radio replays, e-learning, music), or all channels simultaneously (for sound tutorial, sounds-packs showcases, audio products demo etc…), which is its main purpose.īy working with the default audio/playlist shortcode, you have great advantages: This plugin replaces the default WordPress audio player with a player capable of displaying audio waveforms.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |