Articles on: GENERAL

Can I embed two or more widgets of the same type in one web page?

Yes. You can embed two or more widgets of the same type in one web page. To make it work, you need to include only one script tag in your web page.

For example, you want to embed two YouTube playlist widgets in a single web page. The embed code will look like the following.

<div class='sk-ww-youtube-playlist-videos' data-embed-id='34352'></div>
<script src='https://www.sociablekit.com/app/embed/youtube-playlist-videos/widget.js' async defer></script>


<div class='sk-ww-youtube-playlist-videos' data-embed-id='33092'></div>
<script src='https://www.sociablekit.com/app/embed/youtube-playlist-videos/widget.js' async defer></script>


To make it work in a single web page, place the div tags where you want the feed to appear.

<div class='sk-ww-youtube-playlist-videos' data-embed-id='34352'></div>


<div class='sk-ww-youtube-playlist-videos' data-embed-id='33092'></div>

Then put the script tag before the ending body tag of your page.

<script src='https://www.sociablekit.com/app/embed/youtube-playlist-videos/widget.js' async defer></script>

Updated on: 08/06/2022

Was this article helpful?

Share your feedback

Cancel

Thank you!