
Announcement
Collapse
No announcement yet.
Adsense in the middle of an article
Collapse
X
-
Interesting. The problem is that the article parser doesn't recognize that its inside javascript so it puts <br /> at the end of each line. There are two ways to solve the problem. By far the easiest is to just put each of the javascript calls on one line.
<script type="text/javascript">google_ad_client = "XXXXXXXXXXXXXXX";google_ad_slot = "XXXXXXXXXXX";google_ad_width = 468;google_ad_height = 60;</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
You could also put the first javascript call in an external file and call it like the second <script> block, but that's unnecessary. Try the above, it should work properly.
Leave a comment:
-
HTML was assigned (I tried that before asking) but still nothing, just a blank space.
Leave a comment:
-
I haven't tested, but if you assign HTML rights to a user (admincp > CMS > CMS Permissions) then that user can edit the article and insert HTML, which can be the adsense code.
Leave a comment:
-
Adsense in the middle of an article
Is there any way of adding adsense to the middle of an article on the CMS?
Not necessarily through an automated way like the footer of the forum - copy and pasting the code would do fine.
Tried pasting in the code and nothing shows up.
Can anyone offer a solution?Tags: None
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Leave a comment: