Hello Wei Hong,
Nope, you cannot use google adsense with the banner plugin.
Printable View
Hello Wei Hong,
Nope, you cannot use google adsense with the banner plugin.
Hi Viktor,
But the header banner can be used for google adsense right? Like I saw on demo?
Also regular banner plugin with position banner in grid is there anyway to change the position. I have a category with 6 listings only but it seems that this banner in grid only appear after the 9 listings. Can I change it?
Hi Rudi, Viktor,
I'm trying to add this adsense code to a html content box
When I hit save button it remove this ins part so the red ins part is removed once I savedQuote:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-***********"
data-ad-slot="********"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
From this
It became thisQuote:
<div class="adx">
<div class="adx-header">Advertisement</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-************"
data-ad-slot="*******"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
I tried to apply the fix that Viktor recommened in page 1 to edit block.inc.php in admin folder but it still remove the insQuote:
<div class="adx">
<div class="adx-header">Advertisement</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar Ads -->
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
You can set Content box with 'Header banner' position and put google adsense there.
Choose box type as 'Smarty'
and put google adsense code between {literal} google ads code ... {/literal}
and check again.
If you know html and css styles you can add any text in Smarty box also.
Hi Viktor,
I copy this code to a smarty content box:
When I click save, it became like this :(Quote:
<div class="adx">
<div class="adx-header">Advertisement</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar Ads -->
<ins class="adsbygoogle"
*** style="display:block"
*** data-ad-client="ca-pub-**********"
*** data-ad-slot="*******"
*** data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
Arent there any way to make this smarty and html content box not changing or removing our code? hu hu hu
Quote:
{literal}<div class="adx">
<div class="adx-header">Advertisement</div>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- sidebar Ads -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-***********"
data-ad-slot="*********"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>{/literal}
you should use css styles without a symbol * inside like in your previous example
so it should be:
and you can also use in html boxCode:Only registered members can view the code.