Tagged: Code block, javascript
Hi there,
I want to add a simple javascript to my new website, which is using the Enfold 2017 theme – just an archive of newsletters. I am using the same script from the old site and it isn’t appearing – either within a widget, code block or within a text block. It simply won’t display. Here is the code:
<script type=”text/javascript” src=”http://ezines.bristlebird.com/t/r/p/udyky/0/1/0/0/1/”></script>
Can someone help me?
Hey Humphrey,
Are any console errors being reported?
Best regards,
Jordan Shannon
The console says it’s blocking content from the source – claiming it as unsafe? Can this be overridden?
Hi humphreyjones,
Try like this
<script type="text/javascript" src="//ezines.bristlebird.com/t/r/p/udyky/0/1/0/0/1/"></script>
Best regards,
Victoria
No, still the same error.
Morning,
Stab in the dark… your site runs an ssl (https)?
The script you are loading is over http so is being blocked to maintain a secure site.
There is no way to override this as the whole reason for an ssl (https) is to be secure. Forcing one link to load over http will render the ssl pointless.
Solution – the script you are loading needs to be from an ssl domain.
A user can click on the “load unsafe scripts” icon in the browser bar but will them be prompted the site is no longer secure
Hope that helps a little
TJ
Hey tjswarbs78,
Thanks for the input on this. It’s much appreciated.
Best regards,
Jordan Shannon
Thanks – makes a lot of sense. I have contacted the ezine providers to sort out the issue.
Hi,
Okay great. I will keep this thread open so you can report the result.
Best regards,
Jordan Shannon
Thanks for all your help – the newsletter providers have added an SSL cert to the site and the script is working perfectly now. Much appreciated.
Hi,
I’m glad were able to get this configured correctly. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon