Good afternoon,
We just updated our theme to the latest version, and we went to re-add our codes from google ad manager (formerly Double Click) the mobile header file as we have in the past but we can no longer locate the folder/files. It says the plugin is activated, curious, did the location of files change?
The code we are trying to add is needed to display ads on mobile.
Thank you!
Hi,
Most of the theme files were moved into the tagdiv composer plugin as per the requirements of envato: https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements.
We wrote an article on the subject here: https://tagdiv.com/updating-the-core-of-tagdiv-themes/
Now you can find the mobile files in wp-content/plugins/td-composer/mobile -> https://www.screencast.com/t/ub6MLXUZu9AM
Thank you for your understanding!
Awesome, thank you for that!
Would you have any tips on where would be best to put Google Ad code for the header? Currently we have to re-add it each time.
<script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/93790867/Buzzmobilemain', [300, 250], 'div-gpt-ad-1515519871457-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/93790867/Mobile_Above_Article', [[300, 90], [300, 1050], [300, 100], [300, 250]], 'div-gpt-ad-1515520093503-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('/93790867/Mobile_end_of-article_unlimited', [300, 250], 'div-gpt-ad-1515520488301-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<script>
googletag.cmd.push(function() {
googletag.defineSlot('\/93790867\/Mobileendofarticle', [ 300.0 ,
250.0 ], 'div-gpt-ad-1528991941740-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
Thank you for the help and great theme!
