Page 1 of 1
I like to customize the layout to insert ad code.
Posted:
27 Mar 2016, 02:50
by samuelyip
Hi, I like to customize the layout to insert ad code.
1. Add google adsense in various part of the page
2. Add pay ad column (advertisting space)
Where I can amend the code or layout to reflect such changes?
Re: I like to customize the layout to insert ad code.
Posted:
28 Mar 2016, 13:47
by fisher
I suggest you taking a look at Advertising banners module:
http://re-pro.monoray.net/advertising/b ... vert/adminYou will be able to load Google adsense, images and HTML banners through it.
The cost for Advertising banners module is $49
Read more about the add-on here:
http://open-real-estate.info/en/module- ... ng-bannersContact us to buy it.
Re: I like to customize the layout to insert ad code.
Posted:
30 May 2016, 16:15
by palva12
Hi,
I need help from expert to implement adsense in my site.
I have the adsence script from the google as below:
=================================================================
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 728x90 -->
<ins class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-4383716687"
data-ad-slot="2950011"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
==============================================================
I copied the code to " themes/theme_name/views/layouts/main.php"
and inserted above the code "<div id="loading" style="display:none;"><?php echo Yii::t('common', 'Loading content...'); ?></div>"
Now my main question:
In this way i can place only one add. If i Want to place multiple adds then can i use open real advertisement module?
In advertisement module there is option to place a image and text. How i can incorporate google adsense. Where i have to do code change. Please suggest.
Re: I like to customize the layout to insert ad code.
Posted:
31 May 2016, 11:06
by andipas
With Advertising module you can add javascript code to all the pages. You can add as many positions and pages as you wish.
Re: I like to customize the layout to insert ad code.
Posted:
03 Jun 2016, 11:37
by palva12
Hi,
Could you please suggest where( file name and location and position in that file) to add the script. Add should come left and right side of all pages.
Thanks & Regards
Raj
Re: I like to customize the layout to insert ad code.
Posted:
03 Jun 2016, 16:24
by andipas
In the file - themes/theme_name/views/layouts/main.php
If you want to add your advertising banner in a specific place, this will be an extra development, please contact us.