Title: Spotify embed AMP error
Last modified: June 10, 2020

---

# Spotify embed AMP error

 *  Resolved [mustafabaysal](https://wordpress.org/support/users/mustafabaysal/)
 * (@mustafabaysal)
 * [6 years ago](https://wordpress.org/support/topic/spotify-embed-amp-error/)
 * Hi, thanks for this great plugin.
 * I have a problem with Spotify embed code.
 * I just added the link of my Spotify podcast on the post. Then Spotify just creates
   its own embed version and shows is inside the post.
 * Everthing is fine but the problem is that I have an error on search console for
   my AMP page: “The attribute ‘width’ in tag ‘amp-iframe’ is set to the invalid%
   100 value”
 * How to fix this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fspotify-embed-amp-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [mustafabaysal](https://wordpress.org/support/users/mustafabaysal/)
 * (@mustafabaysal)
 * [6 years ago](https://wordpress.org/support/topic/spotify-embed-amp-error/#post-12967811)
 * I solved the problem but now I have another: Spotify doesn’t play at AMP page.
   It’s working like a charm in normal page but not playing in AMP version.
 *  Thread Starter [mustafabaysal](https://wordpress.org/support/users/mustafabaysal/)
 * (@mustafabaysal)
 * [6 years ago](https://wordpress.org/support/topic/spotify-embed-amp-error/#post-12968203)
 * So I did it by myself and want to tell how i did for those who still need help.
 * If you have a iframe audio code which works well but do not play, then you have
   a problem with sandbox which is told here: [https://amp.dev/tr/documentation/components/amp-iframe/](https://amp.dev/tr/documentation/components/amp-iframe/)
 * So the solution is that you must add the below code into your iframe code. After
   that, your audio iframe will start to play like a charm:
 * sandbox=”allow-scripts allow-same-origin”
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [6 years ago](https://wordpress.org/support/topic/spotify-embed-amp-error/#post-12970322)
 * Thank you for your valuable information. We will add this code in our future 
   updates.
    -  This reply was modified 6 years ago by [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Spotify embed AMP error’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [iframe](https://wordpress.org/support/topic-tag/iframe/)

 * 3 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/spotify-embed-amp-error/#post-12970322)
 * Status: resolved