Hello Wei Hong,
Nope, you cannot use google adsense with the banner plugin.
Hello Wei Hong,
Nope, you cannot use google adsense with the banner plugin.
Viktor,
Flynax technical department,
Best wishes.
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 saved<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 this<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 ins<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>
Last edited by Wei Hong; April 23, 2018 at 10:44 AM.
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.
Last edited by Viktor; April 23, 2018 at 09:19 AM.
Viktor,
Flynax technical department,
Best wishes.
If you know html and css styles you can add any text in Smarty box also.
Viktor,
Flynax technical department,
Best wishes.
Hi Viktor,
I copy this code to a smarty content box:
When I click save, it became like this<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
{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.
Last edited by Rudi; April 23, 2018 at 12:12 PM.