View Full Version : adsense in CMS articles
rose123
08-29-2010, 05:37 PM
How to insert adsense code inside CMS articles content?
teamsupra
11-29-2010, 01:13 AM
Id love to know this as well :)
teamsupra
12-18-2010, 11:31 PM
Is there really no way? I have seen many posts like this one without any answers. So is it really not possible to post an ad inside an article?
TheLastSuperman
12-19-2010, 01:10 AM
Well sure... I don't see why not you simply need to edit the appropriate templates and add in the code unless I'm completely missing something.
Where do you want it shown (bear in mind some ad sizes like 728 x 90 may or may not fir aesthetically into your site/style) in your CMS, in the articles correct?
Edit: If it's in the article pages themselves this can easily be done however on the preview page it would take some work...
Go to your style manager and select to edit your templates... find the template named vbcms_content_article_page and edit it, now find:
<div class="fullwidth">
Add below:
*This would be your add code I removed my pertinent details and replaced with 123 and as usual the 8675309 song number lol!
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1234567898675309";
/* Main 2 */
google_ad_slot = "1238675309";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
Demo screenshot:
https://vborg.vbsupport.ru/external/2010/12/31.png
See if that does what you want, you may want to relocate it if your not happy with the location.
rose123
10-02-2011, 12:27 AM
This works but I want add in between the content of the article.
Naijasite
01-07-2013, 01:51 PM
i need it also..btw the content
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.