You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to get a Apple Music widget to embed in a Wordpress site

I have a client that has his music up on Apple Music. I have the link to his music. I've tried using the Apple Music widget generator to create an iframe link in order to put a link to song previews on his new Wordpress site. What I get is a big, blank box. No music. No links. I've followed all the instructions online. It's not working. What am I doing wrong? Here's the iframe embed code:


<iframe allow="autoplay *; encrypted-media *; fullscreen *" frameborder="0" height="450" style="width:100%;max-width:660px;overflow:hidden;background:transparent;" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-storage-access-by-user-activation allow-top-navigation-by-user-activation" src="https://embed.music.apple.com/us/artist/tony-reins/1512652631"></iframe>

Posted on Apr 16, 2021 2:04 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 17, 2021 7:23 AM

I think you have to embed a song, album, or playlist. Not just the artist name. E.g.:


<iframe src="https://embed.music.apple.com/us/album/small-town-sundown/1515449924?i=1515449931&amp;app=music&amp;itsct=music_box_player&amp;itscg=30200&amp;ct=songs_small_town_sundown&amp;ls=1" height="150px" frameborder="0" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation" allow="autoplay *; encrypted-media *;" style="width: 100%; max-width: 660px; overflow: hidden; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; background-color: transparent; background-position: initial initial; background-repeat: initial initial;"></iframe>

2 replies
Sort By: 
Question marked as Top-ranking reply

Apr 17, 2021 7:23 AM in response to cptndigital

I think you have to embed a song, album, or playlist. Not just the artist name. E.g.:


<iframe src="https://embed.music.apple.com/us/album/small-town-sundown/1515449924?i=1515449931&amp;app=music&amp;itsct=music_box_player&amp;itscg=30200&amp;ct=songs_small_town_sundown&amp;ls=1" height="150px" frameborder="0" sandbox="allow-forms allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation" allow="autoplay *; encrypted-media *;" style="width: 100%; max-width: 660px; overflow: hidden; border-top-left-radius: 10px; border-top-right-radius: 10px; border-bottom-right-radius: 10px; border-bottom-left-radius: 10px; background-color: transparent; background-position: initial initial; background-repeat: initial initial;"></iframe>

Reply

How to get a Apple Music widget to embed in a Wordpress site

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.