{"id":859,"date":"2022-08-16T11:37:18","date_gmt":"2022-08-16T11:37:18","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2022\/08\/16\/6475125-hostinger-website-builder-how-to-embed-audio-files\/"},"modified":"2026-03-16T12:12:06","modified_gmt":"2026-03-16T12:12:06","slug":"6475125-hostinger-website-builder-how-to-embed-audio-files","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/6475125-hostinger-website-builder-how-to-embed-audio-files\/","title":{"rendered":"Hostinger Website Builder: How to Embed Audio Files"},"content":{"rendered":"<p class=\"no-margin\">If you use Hostinger Website Builder and want to add an audio player to your site, you can do that with the help of a third-party platform and our <a href=\"\/support\/6463152-website-builder-how-to-embed-custom-code\" target=\"_blank\" class=\"intercom-content-link\">embed code<\/a> element.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">All you need to do is get the<b> iframe code<\/b> of the audio track you want to add to the site.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_a9b654c366\">Using digital music services<\/h2><p class=\"no-margin\">You can copy the code of a preferred audio track from <a href=\"https:\/\/artists.spotify.com\/help\/article\/embedded-players\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Spotify<\/a> or <a href=\"https:\/\/help.soundcloud.com\/hc\/en-us\/articles\/115003568008-Embedding-a-track-or-playlist-\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">SoundCloud<\/a>.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_a1779ce1d7\">Using online tools and widgets<\/h2><p class=\"no-margin\">Alternatively, you may create a third-party audio player widget using <a href=\"https:\/\/elfsight.com\/audio-player-widget\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Elfsight<\/a>, <a href=\"https:\/\/www.commoninja.com\/widgets\/audio-player\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">CommonNinja<\/a> or another preferred online tool. <\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_0488685338\">Embedding your own audio track<\/h2><p class=\"no-margin\">If you wish to add an audio file from your local device, follow the steps below &#128071;<\/p><p class=\"no-margin\">\n<\/p><h3 id=\"h_d1945fbe13\">Step 1 &ndash; Create an Embed Code element<\/h3><p class=\"no-margin\">Insert the <a href=\"\/support\/6463152-website-builder-how-to-embed-custom-code\" target=\"_blank\" class=\"intercom-content-link\">embed code<\/a> element where you want to show your audio file. Then, copy this line of code:<\/p><pre><code>&lt;audio controls&gt; &lt;source src=\"URL\"&gt; &lt;\/audio&gt;<\/code><\/pre><p class=\"no-margin\">And paste it within the Embed Code element that you just created. <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">\n<p class=\"no-margin\">You will update again this Embed Code later with your audio file URL.<\/p>\n<\/div><p class=\"no-margin\">\n<\/p><h3 id=\"h_0d328de596\">Step 2 &ndash; Upload your audio file to your Media Library<\/h3><p class=\"no-margin\">Access the <a href=\"\/support\/7171600-website-builder-media-library\" target=\"_blank\" class=\"intercom-content-link\">Media Library<\/a> of your editor:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/40db61cc-77a6-436e-a38e-3bc668dfee87.jpg\" width=\"500\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">There, click on the <b>Upload files <\/b>button to upload your file. Once it&rsquo;s uploaded, hover your cursor over the file and click on the details:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/a225f2c8-5ab0-4dac-8fd8-16b5367bab03.jpg\" width=\"600\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Copy the file path URL of your audio file &ndash; you will need it in the next step:<\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2022\/08\/f4aa0736-2231-4080-bc6e-3be148295bc2.jpg\"><\/div><p class=\"no-margin\">\n<\/p><h3 id=\"h_4604bb8013\">Step 3 &ndash; Edit the embed code element<\/h3><p class=\"no-margin\">Go back to the Embed Code element that you previously created, then paste the URL of your audio file there, like this:<\/p><p class=\"no-margin\">Before:<\/p><pre><code>&lt;audio controls&gt; &lt;source src=\"INSERT URL HERE\"&gt; &lt;\/audio&gt;<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">After:<\/p><pre><code>&lt;audio controls&gt; &lt;source src=\"https:\/\/assets.zyrosite.com\/AoPeKzbBJpFBJ2QQ\/my-audio-file-xxxxg13X6VIlL41d.mp3\"&gt; &lt;\/audio&gt;<\/code><\/pre><p class=\"no-margin\">\n<\/p><h3 id=\"h_fbb8dd643b\">Step 4 &ndash; Save the Embed Code element<\/h3><p class=\"no-margin\">Once everything is done, save the changes and check the audio file on your live website or in the preview mode.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to embed a soundtrack or a playlist to your website<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[280],"tags":[],"class_list":["post-859","post","type-post","status-publish","format-standard","hentry","category-website-elements"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/6475125-hostinger-website-builder-how-to-embed-audio-files\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/6475125-hostinger-creador-de-sitios-web-como-anadir-archivos-de-audio\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/6475125-hostinger-createur-de-site-web-comment-integrer-des-fichiers-audio\/","default":0},{"locale":"lt-LT","link":"https:\/\/www.hostinger.com\/lt\/support\/6475125-hostinger-svetainiu-kurimo-irankis-kaip-prideti-audio-faila\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/6475125-hostinger-criador-de-sites-como-adicionar-arquivos-de-audio\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=859"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/859\/revisions"}],"predecessor-version":[{"id":3516,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/859\/revisions\/3516"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}