Skeptical Posted November 5, 2017 Share Posted November 5, 2017 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? Link to comment Share on other sites More sharing options...
steve00 Posted November 5, 2017 Share Posted November 5, 2017 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 Link to comment Share on other sites More sharing options...
Skeptical Posted November 5, 2017 Author Share Posted November 5, 2017 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. Link to comment Share on other sites More sharing options...
steve00 Posted November 5, 2017 Share Posted November 5, 2017 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) Link to comment Share on other sites More sharing options...
Skeptical Posted November 5, 2017 Author Share Posted November 5, 2017 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.