If you want to embed with Javascript code, you can use following code:
const el = document.createElement('covet-pics-widget');
el.galleryEmbedId = XYZ;
// now embed gallery into a <div class="my-gallery"></div>
const wrap = document.querySelector(".my-gallery");
wrap.appendChild(el);
This could be useful if you want to programmatically embed the gallery, for eg. you can create a script that will detect user scroll and embed gallery only after user scrolled to certain position on the page.
Comments
0 comments
Article is closed for comments.