Hi,
I’d like to add a link to the ‘ADVERTISEMENT’ label (see mockup below). Just customising the advertisement_label text doesn’t work - what is the recommended approach for this?
Hi,
I’d like to add a link to the ‘ADVERTISEMENT’ label (see mockup below). Just customising the advertisement_label text doesn’t work - what is the recommended approach for this?
To answer my own question, you can override the adsense template by adding this to the HEAD section:
<script type="text/x-handlebars" data-template-name="javascripts/components/google-adsense">
{{#if showAd}}
<div class="google-adsense-label"><h2>{{i18n 'adplugin.advertisement_label'}} - <a href="http://patreon.com/blenderartists" target="_blank">Support us on Patreon</a> to hide this.</h2></div>
<div class="google-adsense-content" style={{adWrapperStyle}}>
<ins class="adsbygoogle"
style={{adInsStyle}}
data-ad-client="ca-pub-{{publisher_id}}"
data-ad-slot={{ad_code}}
data-ad-format={{autoAdFormat}}>
</ins>
</div>
{{/if}}
</script>