Copy link to clipboard
Copied
I am trying to insert a newsletter subscribe button for my Campaign Monitor subscriber list. The website gives users premade code for the subscribe button. See below.
<div class="createsend-button" style="height:27px;display:inline-block;" data-listid="r/80/D1E/3D1/671ACD229C5D11A3">
</div><script type="text/javascript">(function () { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://btn.createsend1.com/js/sb.min.js?v=3'; e.className = 'createsend-script'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); })();</script>
When I insert this code into my muse site, the button shows up and everything looks fine. However when I preview in browser the button doesn't show up. I contacted Campaign Monitor and they stated its a CSS conflict on the page and that their code is fine. Does anyone know how to fix this problem so that the button shows up on the website?
Many thanks!
Farrah
Copy link to clipboard
Copied
Hi Farrah,
I placed your code in a new file and it worked both in design as well as in the browser.
Can you try publishing your site and share the URL with me so I can check the codes?
Regards,
Ankush