Tagged: Code block, javascript
-
AuthorPosts
-
August 14, 2017 at 7:23 pm #838893
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?
August 14, 2017 at 11:21 pm #838999Hey Humphrey,
Are any console errors being reported?
Best regards,
Jordan ShannonAugust 15, 2017 at 9:19 am #839122The console says it’s blocking content from the source – claiming it as unsafe? Can this be overridden?
August 15, 2017 at 10:48 am #839172Hi 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-
This reply was modified 8 years, 2 months ago by
Victoria.
August 15, 2017 at 10:54 am #839176No, still the same error.
August 15, 2017 at 11:15 am #839188Morning,
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
August 15, 2017 at 2:10 pm #839286Hey tjswarbs78,
Thanks for the input on this. It’s much appreciated.
Best regards,
Jordan ShannonAugust 15, 2017 at 2:11 pm #839287Thanks – makes a lot of sense. I have contacted the ezine providers to sort out the issue.
August 15, 2017 at 2:13 pm #839289Hi,
Okay great. I will keep this thread open so you can report the result.
Best regards,
Jordan ShannonAugust 15, 2017 at 3:54 pm #839369Thanks for all your help – the newsletter providers have added an SSL cert to the site and the script is working perfectly now. Much appreciated.
August 15, 2017 at 4:09 pm #839377Hi,
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 -
This reply was modified 8 years, 2 months ago by
-
AuthorPosts
- The topic ‘Javascript not displaying on Enfold theme’ is closed to new replies.
