2 Best Background Music Widgets to Add Audio to Your Website

Since the user experience is one critical element of a successful website, you might want to add background audio to your website. This audio can be music or any sound.

Having a background music player on your website, the audio will automatically play upon the user’s landing on the page, and the user can pause background audio or adjust the volume and play the next track.

To add background audio to websites, you have to use a background audio widget, which many website-building platforms, blogging platforms, and online store builders do not provide. So, you will have to use a third-party background music widget.

We shared several embeddable music players in our previous article on the best audio player widgets for websites. However, those aren’t suitable for a website as background audio players. Try out these top background audio widgets to add music and sounds to your website and enhance your user experience today!

Best Background Audio Widgets to Add Music and Sounds to Your Website Today

Elfsight’s Background Music Widget

Elfsight Background Music Widget

Elfsight is one of those platforms that you can use to generate HTML codes for widgets without coding knowledge! The no-code HTML widgets provider has 85+ quality widgets to not only collect information but also showcase it, as well as add web components such as a background audio player to enhance user experience. Its Photo gallery widget, TikTok feed widget, and YouTube channel widget are notable mentions.

Elfsight’s Background Music widget is free to use and comes with a visual builder equipped with templates, widget layout options, player customization, and appearance control options. The following image showcases the visual editor of Elfsight’s Background music widget.


  • Templates — Elfsight provides several templates to get you started quickly. Nature Sounds, Spa Music, Chrismas Player, Volume, Halloween, and Embeddable Player are those.
  • Add tracks and edit details — The background sounds widget editor lets you upload unlimited tracks with a 100 MB full-size limit in one upload. Once uploaded, you can organize them and edit each track’s details, such as title, artist, and cover image, which will appear on your website’s background audio widget. Want to play the same audio multiple times? Duplicate it and set its placement on the playlist.
  • Set widget’s layout — There are two options: floating and embed. The first option makes the widget sticky and floats with the user’s scrolling, while the embed option lets you make the widget static. Also, you can set the HTML background music widget’s placement (Top Left & Right, Bottom Left & Right) and turn the close button on or off.
  • Player Settings: In this section, you can edit the background audio player.
    • Player Controls: Turn on or off the buttons of Prev and Next, Play, Shuffle, Loop, Volume, and Playlist on the player. Also, there are toggle options available on the background music widget creator for enabling the Save Playing Track and Progress and shuffle, repeat, and loop playlists by default.
    • Autoplay: Automatically play audio background on the website. However, keep in mind that the Autoplay feature requires a user’s first action on the site, like a click, to function due to browser constraints.
    • Playlist: Show or hide the playlist by default, track info, and set the playlist’s height.
    • Message: This section lets you edit or translate front-end messages.
  • Customize Appearance: There are two color schemes available: Light and Dark. The Custom color scheme allows you to edit the background, colors, and fonts. There are even custom CSS and JavaScript fields for further changing the look and feel of the background music widget.

How to create a background music widget using Elfsight

Use the widget builder below to create your widget. Select a template, click on the “Continue with this template” button, upload the track and edit their details, customize the player and widget’s appearance, and click on “Add to website” to get the embed code.

Or you can sign up on the Elfsight website, search for the “Background Music” app from the Catalog, and edit it as shown in the video below.

Background music HTML code

The embed code for the Background Music widget created on Elfsight can be copied from your dashboard.

Elfsight Background Music Widget Code

It will include two parts: 1) a JavaScript file (which loads resources) and 2) an HTML div element with a class name that identifies the background music widget and placement of its installation on the webpage.

<script src="https://static.elfsight.com/platform/platform.js" data-use-service-core defer></script>
<div class="elfsight-app-d43deaeb-b71b-46a1-9f50-0Oc8ea623ea8" data-elfsight-app-lazy></div>

If you created a floating widget, copy the code and place it before the closing body tag (</body>) of your website theme, template, or source code editor. However, if you created an embedded background audio widget, copy it where you want to showcase it.

On a side note, if you have already added other Elfsight widgets, such as website notification bars or stylish CTA button there is no need to add the JavaScript part (bolded in the above example code) again since it’s already being used.


Elfsight’s Background Music widget is free to use, with a limit of one widget and up to 200 views per month. To create more unique background audio gadgets for your websites and increase the views, you have to upgrade to a paid plan starting at $6 per month.

Elfsight Background Music Widget Pricing

Click here to try Elfsight.

Fouita’s Background Music Widget

Fouita Background Music Widget Templates

Fouita is another platform like Elfsight that provides 60+ widgets for websites that can be used on any platform. Unlike Elfsight, Fouita has more robust analytics as well as white-label features that you can use to use background music widgets (and others) without the footprint of Fouita under your brand.

Fouita’s Background Music widget provides a visual editor that lets you upload audio from your computer or a URL, makes the widget transparent so the content will be displayed without distraction, and provides customization options.


  • Templates — Fouita provides several pre-designed templates for background music widgets.
  • Add audios — Upload audios from your device or a URL, edit their title and artist, and set the cover image.
  • Settings — This includes default volume for the background music player, enabling autoplay of the next song, downloading audios, and setting up dimensions of the widget.
  • Customize layout — Make the widget static or floating (i.e., popup player), turn the close button on or off, and use transparency mode.
  • Customize appearance — Change fonts, sizes, colors, icons, and position of the widget’s placement webpage, among others. Use the custom CSS tab to add your own styles.


Fouita offers a flexible pricing structure based on the widgets, storage capacity, and views, which you can adjust on the pricing page.

Fouita Pricing

Click here to try Fouita.

Final words

You might want to integrate a background audio widget into your website in several circumstances to improve user experience as well as have an enjoyable shopping experience. But, keep in mind that don’t overuse it; it can be irritating for users. For that reason, use it only on relevant pages and make the player and controllers visible.

Also, if you use other floating widgets, such as the WhatsApp Chat widget or a floating HTML contact form widget on your site, make sure to align the background audio player so as not to create any conflicts.

Leave a Comment