By Tim P.K. on Tuesday, 05 August 2014
Posted in General Issues
Likes 0
Views 1.3K
Votes 0
I know this has been discussed already, but there seems to be no further improvement on how responsive Ads can be implemented in EasyDiscuss?

More and more visitors are browsing my site with a multitude of mobile devices and I would like to know what will be the best approach of implementing the "code".

There is a smart sizing version:

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- test -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-123456789123456789"
data-ad-slot="123456789"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>


Or an advanced version:

<style>
.test { width: 320px; height: 50px; }
@media(min-width: 500px) { .test { width: 468px; height: 60px; } }
@media(min-width: 800px) { .test { width: 728px; height: 90px; } }
</style>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- test -->
<ins class="adsbygoogle test"
style="display:inline-block"
data-ad-client="ca-pub-123456789123456789"
data-ad-slot="123456789"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>


Is it possible to use both / one of them in EasyDiscuss or what needs to be modified to get this implemented?

Thanks,

Tim
Hello Tim,

You could add either of the codes into the theme file /components/com_easydiscuss/themes/simplistic/adsense.php by replacing the existing contents and it should work out of the box
·
Tuesday, 05 August 2014 01:55
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect!

As I'm using the "flatt" theme copied the adsense.php from there and replaced the content within the <div> tags - Worked right away!

Thank you!

Tim

·
Tuesday, 05 August 2014 02:51
·
0 Likes
·
0 Votes
·
0 Comments
·
You are most welcome Tim
·
Tuesday, 05 August 2014 03:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post