Embedding Yandex.Music
You can add tracks, albums, and playlists from Yandex.Music on Turbo pages. To do this:
- On Yandex.Music, get the iframe embed code.
- Add the copied code in the <![CDATA[]]> section inside the turbo:content element. Check for the
#
symbol in the url, embedding does not work correctly without it.
<iframe frameborder="0" style="border:none;width:100%;height:450px;" width="100%" height="450" src="https://music.yandex.ru/iframe/#album/496406">listen to <a href='https://music.yandex.ru/album/496406'>channel ORANGE</a> — <a href='https://music.yandex.ru/artist/452028'>Frank Ocean</a> on Yandex.Music</iframe>
Note.
When setting up the widget, configure links to open in a new tab (target="_blank"
), otherwise there is a risk that the user won't be able to open the link.