Jump to content

Where do I put ad code in-between head tags?


Skeptical

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...