#How to Use Script tag with custom attributes in the Layout.astro file.

1 messages · Page 1 of 1 (latest)

vague fractal
#

I want to add a script with a custom attribute in the head tag of all the pages on my site. The script tag is as follows:
<script data-grow-initializer="">!(function(){window.growMe|| bla bla</script>

I added this script tag in the layout.astro file. But after the site was built by Astro, the script tag didn't contain the attribute data-grow-initializer=""..

This attribute was expected by another program for correct functioning.

I'm using the astrowind theme.

Please help.

surreal shoal