-
AuthorPosts
-
August 1st, 2013 at 21:12 #10174
Jim
Good Day!
I am trying to add the web site satisfaction survey JavaScript script from Google Surveys. I was trying to use the Custom JavaScript box under Miscellaneous Settings (Mantra 2.0.6). I place the code in there:
<script async="" defer="" src="//survey.g.doubleclick.net/async_survey?site=xxxxxxxxxx"></script>and do a save. Problem is that it does not remain there and does not go into the code. I noticed in the help bubble, you state that script tags are not needed. That is a true statement if you are placing an inline script (I tested that and it works fine). Problem is that to include a script by reference (i.e. src=), Mantra strips the script tags leaving nothing.
I am looking through the code to see if there is a quick fix – I dread adding something hard-coded because it gets lost with updates. Any thoughts?
Thanks for the super theme – I am having a hackers field day mod’ing using the Theme Settings!
Jim
August 4th, 2013 at 12:12 #10344Zed
Cryout Creations mastermindMantra only allows you to type in what’s between the <script> </script> tags.
If you need to include an external script, you’ll need to create a child theme and mod the header/footer file there.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic. -
AuthorPosts
The topic ‘Custom JavaScript Under Misc Settings Problem’ is closed to new replies.