Skip to main content

Why are my widgets appearing in duplicate?

Support avatar
Written by Support
Updated over 10 months ago

When adding multiple widgets to a page, the second line of script only needs to be included on the page once. If this script is included with each widget, the widgets will be duplicated.

In order to avoid duplicate widgets with multiple widgets on one page, the script added to the page should appear as such:

```
<div data-cswidget="1"> </div>
<div data-cswidget="2"> </div>
<div data-cswidget="3"> </div>
<script type="text/javascript" async defer src="//cdn.cityspark.com/wid/get.js" > </script>
```
Did this answer your question?