• Up to now the only way i have been able to successfully insert adsense into my posts and have them show up ok both in firefox and internet explorer was to have a plugin enabled.. but that messed up formatting as it turned it off… I then tried just turning off the WYSIWYG editor in admin.. and well that works for firefox BUT NOT for I.E.

    So im back to the drawing boards.. Could someone please share with me how they are managing to insert adsense right into their post itself please and thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • I have turned off the WYSIWYG editor from day one, it is just not my style..
    I do not reccomend putting the ads in the post itself. I would say to put them in the theme template to make it easier to track.
    But if you need to put it in the post body, it should work fine if you turn off the WYSIWYG editor.

    Thread Starter eddyj

    (@eddyj)

    Bazil.. if you turn of the WYSIWYG editor.. yes you can insert into the post and it looks fine in FIREFOX but it doesnt in Internet Explorer.. it will knock your blog out of whack..

    Insert a Small Square Adsense or the 2 boxes on into your post.. look at it in firefox and then go look in ie.

    Go try it..

    Turning WYSIWYG is not a solution..

    I stand corrected. I think the answer is within the WordPress code itself. it will by defaut wrap tags around the body of each post and may even convert line breaks with BR tags. I cant answer that one. I leave it to the pro’s.

    the best way is to insert the adsense on your theme. IMO.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    -Without either a plugin or a modification to disable some of the post filters, you cannot insert adsense into the posts themselves. Period. Scripts don’t work in posts because of these filters, and there is no actual option in the admin interface to disable the problem one in particular. Yes, yes, Firefox is a bit more liberal with the way it interprets javascripts. It really shouldn’t be working in Firefox either, and the fact that it does is probably a Firefox bug.

    -You can edit your theme and insert the adsense code directly. This is far preferable to putting them in the posts themselves, since you can only have three to any given page. Plus it makes your page look more professional, and it’s really not difficult to do. This is the best approach.

    -There are plugins designed to do this sort of thing for you, including putting them after posts, before posts, inside posts, whatever you want. If you are not comfortable editing a theme, I recommend using one of these plugins.

    -If for some weird and unusual reason, you absolutely *must* put the adsense code into the posts themselves, here’s a plugin to allow you to do that without breaking all the rest of the formatting: https://ottodestruct.com/wpstuff/scriptenabler.zip
    All it does is to make the filter not apply to your javascripts inside of posts. Now, I do not recommend this. Not because it won’t work, but because it’s silly when there’s so many better ways to do it. Scripts can be tricky things sometimes, and having them inside your post body itself is not a generally good idea. But if you must, hey, who am I to say it can’t be done?

    Thread Starter eddyj

    (@eddyj)

    thanks great info and thanks for the script.

    If i insert into my theme, How can i have it so that it appears below the post? on each post is it the post.php page i edit? and what code part

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to insert Adsense into Posts without PLUGIN’ is closed to new replies.