Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Skeptical Posted November 5, 2017 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?
steve00 Posted November 5, 2017 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
Skeptical Posted November 5, 2017 Author 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.
steve00 Posted November 5, 2017 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)
Skeptical Posted November 5, 2017 Author 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.