Support Forums - Classified Ads Script Osclass

Osclass theme support => Veronika Osclass Responsive Theme => Topic started by: ColdFusion on June 09, 2017, 10:17:37 AM

Title: Enable Google Adsense Banners in pages
Post by: ColdFusion on June 09, 2017, 10:17:37 AM
Hi frosticek,

could you please advise how to enable adsense on pages, as this is not in the theme settings options. All others work great.

Thanks
Title: Re: Enable Google Adsense Banners in pages
Post by: MB Themes on June 09, 2017, 10:29:03 AM
@ColdFusion
I can see it in theme settings.
Title: Re: Enable Google Adsense Banners in pages
Post by: ColdFusion on June 09, 2017, 10:33:20 AM
Can you tell me what it's called, as I can't see field for pages. Did you include it in later version?
Title: Re: Enable Google Adsense Banners in pages
Post by: MB Themes on June 09, 2017, 10:51:44 AM
@ColdFusion
Theme settings -> banner section. It's there from start.
Title: Re: Enable Google Adsense Banners in pages
Post by: ColdFusion on June 09, 2017, 11:06:21 AM
Thanks  :D

For start, if you read my first post, I mentioned all other are working fine, I just can't see one for PAGES. By pages, I meant general pages, created in Pages menu and referred as pages in OSclass settings. You have options for home/search/item pages (which again, work great), but they don't include pages created  ;)
Title: Re: Enable Google Adsense Banners in pages
Post by: MB Themes on June 09, 2017, 11:44:14 AM
@ColdFusion
Oh, it does not make sense to me to have banner on static page, but you can simply add it to page.php.
Title: Re: Enable Google Adsense Banners in pages
Post by: ColdFusion on June 09, 2017, 11:57:42 AM
Do i need to just add the general Adsense code or I have to copy something from the theme. Would be very grateful if you can point me in the right direction as to which code to copy and where in the file.

The reason it makes sense to have it there to me is, that in this particular case for example, I'm advertising a promo info page, and would like to capture the traffic that would goes to this page as well, as inevitably, for number of visitors, this would be the only page they will open up. This I think makes it a good idea to have the option to add it there too.

Cheers
Title: Re: Enable Google Adsense Banners in pages
Post by: ColdFusion on June 09, 2017, 12:08:05 PM
Got it! The lazy way  ;D

I copied this from main.php: <?php echo veronika_banner('home_bottom'); ?>

Works a treat.
Thank you