-
AuthorPosts
-
July 6, 2015 at 8:49 pm #469237
Hello…I’m trying to use the java script pasted below on a page I’ve built using the Advanced Editor in Enfold. I’ve inserted a Code Block in the page and pasted in the javascript to pull in a flash video “Webout” into the page. When I paste in the script and click Publish…it just spins and never actually saves. If I delete the script from the code block it saves right away.
<script type=’text/javascript’ src=’http://www.hostvg.com/media/WebOuts/HomeWO/GoogleAnalytics.js’></script><script type=’text/javascript’ src=’http://www.hostvg.com/media/WebOuts/HomeWO/HomeWO.js’></script>
We used these scripts on an old GoDaddy Website Builder site until we launched the new site last week and they worked fine.
Thanks in advance for your help.
July 7, 2015 at 9:09 am #469473Hey alliancepp!
Thank you for using Enfold.
If this is a google analytics code, you can add it in the Enfold > Theme Options > Google Analytics field. Note that you have to wait for a few hours or days before it takes effect .
Regards,
IsmaelJuly 8, 2015 at 8:32 pm #470531Ismael,
Thanks for your reply. The script does have a Google Analytics tracking script but it is to track the click throughs on this specific video that plays. It’s not a traditional google analytic code. Is it possible for you to test the script in the code block to see if you are able to view it?
thanks for your help.
July 10, 2015 at 4:23 am #471252Hey!
We can have a look at it if you send us a temporary admin login, you can post the details in the Private Content section of your reply.
Cheers!
RikardJuly 10, 2015 at 9:58 pm #471733Rickard…i’ve pasted the temp log-in below in private content.
July 10, 2015 at 11:14 pm #471756Hi!
Can u please move the scripts the main directory, and let us know if that fixes the issue?
Regards,
BasilisJuly 14, 2015 at 9:25 pm #473443This issue is resolved…but a note.
When I added my Java Script into a Code Block on a page and then clicked Publish…it would spin and looked like it never completed Publishing the page. In actuality, it had saved the code in the page. While it was spinning once I just clicked out to the actual site out of frustration and previewed the page and the script worked.
– I had the same Publishing issue on all 5 pages I added the code block and unique java scripts to. – Thanks and I appreciate your help.
July 15, 2015 at 5:56 am #473522 -
AuthorPosts
- The topic ‘Java Script added to Code Block – won't Publish’ is closed to new replies.