I like to customize the layout to insert ad code.

Questions and answers about change of functions, design, hosting etc.

Moderators: Koduc, Xpycm

Forum rules
Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.

The message limit on the forum is 3 messages per day.
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under the nickname of the person, who answered the message.

I like to customize the layout to insert ad code.

Postby samuelyip » 27 Mar 2016, 02:50

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?
samuelyip
Stranger
 
Posts: 2
Joined: 27 Mar 2016, 02:46
Reputation point: 0

Re: I like to customize the layout to insert ad code.

Postby fisher » 28 Mar 2016, 13:47

I suggest you taking a look at Advertising banners module: http://re-pro.monoray.net/advertising/b ... vert/admin
You 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-banners
Contact us to buy it.
fisher
Citizen
Citizen
 
Posts: 63
Joined: 15 Apr 2013, 09:30
Reputation point: 1

Re: I like to customize the layout to insert ad code.

Postby palva12 » 30 May 2016, 16:15

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.
palva12
Stranger
 
Posts: 12
Joined: 05 Jul 2014, 16:55
Reputation point: 0

Re: I like to customize the layout to insert ad code.

Postby andipas » 31 May 2016, 11:06

With Advertising module you can add javascript code to all the pages. You can add as many positions and pages as you wish.
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1

Re: I like to customize the layout to insert ad code.

Postby palva12 » 03 Jun 2016, 11:37

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
palva12
Stranger
 
Posts: 12
Joined: 05 Jul 2014, 16:55
Reputation point: 0

Re: I like to customize the layout to insert ad code.

Postby andipas » 03 Jun 2016, 16:24

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.
andipas
Web Developer
Web Developer
 
Posts: 156
Joined: 28 Dec 2011, 22:37
Reputation point: 1


Return to Questions and help for changes

Who is online

Users browsing this forum: No registered users and 17 guests

cron