Hey team,
We are trying to connect two CMS Collection together to one CMS Slider, the issue we’re seeing is there is an additional slide that is blank and wondering if this can be removed.
Hey team,
We are trying to connect two CMS Collection together to one CMS Slider, the issue we’re seeing is there is an additional slide that is blank and wondering if this can be removed.
Hello @info2
Try this
You should init the cmsslider
manually after cms combine is done executing.
You can do it by:
fs-attributes-preventload="true"
to the cmsslider
<script>
tag.cmsslider <script>
tag is loaded using defer
and not async
.So:
<script defer fs-attributes-preventload="true" src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmsslider@1/cmsslider.js"></script>
And then, you just have to init it manually after combine is done, like:
window.fsAttributes = window.fsAttributes || [];
window.fsAttributes.push([
'cmscombine',
(combineInstances) => {
window.fsAttributes.cmsslider.init();
},
]);
type or paste code here