Posted November 5, 20177 yr I need to insert this code: <script type='text/javascript'> (function() { var useSSL = 'https:' == document.location.protocol; var src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>'); })(); </script> <script type='text/javascript'> googletag.pubads().enableSyncRendering(); </script> I have tried placing this code in templates >> core >> >> front >> blankTemplate This causes the edit function to not work. Where do I put items and scripts I need between the head tags?
November 5, 20177 yr 38 minutes ago, Skeptical said: I need to insert this code: <script type='text/javascript'> (function() { var useSSL = 'https:' == document.location.protocol; var src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>'); })(); </script> <script type='text/javascript'> googletag.pubads().enableSyncRendering(); </script> I have tried placing this code in templates >> core >> >> front >> blankTemplate This causes the edit function to not work. Where do I put items and scripts I need between the head tags? globalTemplate is where you add your code
November 5, 20177 yr Author Given that inserting code in the head section is so common, I'm shocked there isn't a way to do this without editing templates.
November 5, 20177 yr like anything you want to add ... has to change a template somewhere otherwise how would you add anything ... unless someone can write a plugin of some sort (but beyond my expertise so no idea if even possible)
November 5, 20177 yr Author 4 hours ago, steve00 said: like anything you want to add ... has to change a template somewhere otherwise how would you add anything ... unless someone can write a plugin of some sort (but beyond my expertise so no idea if even possible) in 3.4 there was this System Setting. I plug it into one of those settings: Ad Code Integration (13 settings) These settings will allow you to enter ad codes that can then be displayed throughout your forum Edited November 5, 20177 yr by Skeptical
Archived
This topic is now archived and is closed to further replies.