• Resolved mustafabaysal

    (@mustafabaysal)


    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 to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mustafabaysal

    (@mustafabaysal)

    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

    (@mustafabaysal)

    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/

    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

    (@ahmedkaludi)

    Thank you for your valuable information. We will add this code in our future updates.

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

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