
Now let’s style the player container, we will set the width to 400px and height to 120px. You can set some settings too, for more info read the “MediaElement.js” documentation.įeatures: ,įirst let’s add some reset styles for all the elements that we will use in the container. Also we need to add the same id as we used in the tag to load the player.
Html5 audio player css code#
To finish we need to add this code before the ending of the tag. With Postcards you can create and edit email templates online without any coding skills! Includes more than 100 components to help you create custom emails templates faster than ever before. Then we will add the tag that will link to our song and we’ll also set the id to “audio-player”. Let’s add a tag for the song title and for the cover. This div will be the container for our player elements. To create the player we will add a width the class “audio-player”. All this three files need to be inside of the tag. Then we need to link to “” script file and the CSS file. Now, we need to link to the jQuery Library, we can host it locally or use the one hosted by Google. Then copy all these three files to the same directory, I will copy for my “js” folder. Then from the “build” folder we need three files:
Html5 audio player css download#
Search or See in Common Block Category and select Html5 Audio Player.Download Audio Player Step 1 – Downloading MediaElement.jsįirst we need to download the “MediaElement.js” script and extract it.
Html5 audio player css plus#
Click the plus button in the top left corner or in the body of the post/page.Go to your WordPress Admin interface and open a post or page editor.This plugin add a Gutenberg Block Called Html5 Audio Player Under Common Category.if you want to publish a player in template file use


The plugin will play the appropriate one based on the device.

Ability to specify both the mp3 and ogg version of your audio files.Use the autoplay option to play an audio/mp3 file as soon as the page loads.If you are selling audio files from your site then you can use this plugin to offer a preview.If you do podcasting then this audio player can be used to embed the audio files on your WordPress posts or pages.Works on all major browsers – IE7, IE8, IE9, Safari, Firefox, Chrome.HTML5 compatible so the audio files embedded with this plugin will play on iOS devices.It’s very easy to use which means you don’t have to be an expert to use this plugin.The audio player is compact so it does not take a lot of real estate on your webpage.Embed audio player in the post, page, widget area, and theme templates.It Has tons of options that can fit your audio player needs.

You can Play and embed a nice audio player in the post, page, and widgets areas as well as template files. A Simple, accessible, Easy to Use & fully Customizable audio player that works on all devices.
