Inserting Adsense Code To Your Blog Post
filed in Wordpress, changelog, computer problems, link and info sharing, my work, pictures, techs, tutorials on Nov.15, 2008
First of all, I would like to thank Nasrun for giving me a feedback on my Adsense placing in my blog post and he wanted to know how I manage to do it? This is what I expect from my readers. The purpose of the comment on my blog is to give feedback and I really appreciate Nasrun’s comment on this. Other readers, if you want to know any tips or tutorial, ask away and I will be glad to write one (provided I have time to do it). Well, as I promised, this is the tutorial on how to do it. Actually, it’s pretty simple.
The trick
Actually, the trick is playing some CSS and div layer tag in your theme file. In this case, I only put my Adsense code in single post file. Go to your theme and edit the file that you want your Adsense code to appear. In this case, usually it will be index.php or single.php.
Get the Adsense code
After that, create a new Adsense ads from Adsense dashboard. Typically, the best ad for this is 200×200, but it all depends on your theme. In this tutorial, I will use 200×200. Assuming you guys already have the code, here’s the next step.
Combine your Adsense code
Look at the code below and insert your Adsense code at the designated spot.
<div style=”display:block;float:right;margin: 0px 10px 0px 0px;”>
<— INSERT YOUR ADSENSE CODE HERE —>
</div>
You can customize the div style as you wish. Usually people play around with float to make it left or right position and the margin. I’m no expert in CSS and HTML, but this should do the trick.
Paste the code into the theme file accordingly
Depending where you want your code to appear, it’s up to you really. If you want to see where I put it, here’s the screenshot. You can check my post to see where it’s lcoated.
Save the changes and check how it looks
Save the config and view your new post. The Adsense will appear in your post shortly. If you have any problem with the permission on editing the php file from Wordpress dashboard, you can refer to my tutorial on changing the Wordpress file permission ![]()
So Nasrun, hope you’re satisfied with my tutorial and please ask me if you have any problem ! ![]()





November 15th, 2008 on 3:08 am
info bagus! boleh godeh balik kat blog bikin duit aku eheh.
megat´s last blog post..Semakin Tenang, Keluar Dari Rumah Dan Berpindah
Reply
November 15th, 2008 on 3:33 am
Bagus-bagus.. Thanks for the info.. Patut aku buat takleh.. Aku tak adjust css..
Tq..
Nasrun´s last blog post..Menang Wang Tunai Melebihi RM500 Di Ezy Grafik
Reply
November 15th, 2008 on 4:10 am
hohohoho megat..tarak hal…ko nak amik adsense code aku …letak kt blog ko tros pon aku bg…lg aku suka ! tambah kencang la duit aku kalau org click2 kt blog ko…hehe
Reply
November 15th, 2008 on 4:11 am
hehe…css kena adjust sket……tp depends gak on ko nyer layout la…
Reply
November 15th, 2008 on 6:17 am
masukkan dalam post? There’s a plugin for that called mighty adsense
NoktahHitam´s last blog post..Behind Obama, United States and Malaysia
Reply
November 15th, 2008 on 6:46 am
yerp..true2..but i prefer to make it the old skool way…and sometimes plugins don’t give me the exact effect that I want..
Reply
November 15th, 2008 on 10:43 am
Inserting Adsense Code To Your Blog Post | :: my life 4 hire ::…
This tutorial will show you how to insert Adsense in your blog post…
November 15th, 2008 on 11:39 am
kalau nk letak code iklan tu selepas kita klik komen baru ade mcm mana ye
Kujie´s last blog post..Diam apabila dileteri isteri
Reply
November 15th, 2008 on 12:33 pm
btul la tu.. bole godek letak adsense kt blog nnti..
Star´s last blog post..ciss kne tag! :p
Reply
November 15th, 2008 on 12:34 pm
camne tu.. ade cth?
Star´s last blog post..ciss kne tag! :p
Reply
November 15th, 2008 on 3:35 pm
Wah.. tq…
Mr Am´s last blog post..No programming tutorial here..
Reply
November 15th, 2008 on 5:27 pm
Hehe senang jer, ko request jer ngan aku, nanti aku try buat plugin khas untukmu
P/s: Kalo nak letak iklan di tengah2 post, macam mana pulak ek?
ImamKhalid´s last blog post..Diberi betis nak peha!
Reply
November 15th, 2008 on 5:34 pm
bravo!
shaxx´s last blog post..Kuala Lumpur Jakarta Surabaya
Reply
November 15th, 2008 on 7:05 pm
another quick way to do this in wordpress is by using the shylock adsense plugin.
you can choose to position the adsense ads (or any other ads company you choose) to your blog post.
You also can limit the number of ads and also choose not to appear the adsense ads in some post incase if you were doing paid post.
Cool tips bro!
syuxx´s last blog post..WebHostingPal - Find the right webhost
Reply
November 16th, 2008 on 12:05 am
bro. kisahberuang.com memang domain aku yg punya… kalau ko x prasan la… URL dia kan http://kisahberuang.com bukan http://yoursubsomain.kisahberuang.com
ngeh ngeh ngehhh
shaxx´s last blog post..Kuala Lumpur Jakarta Surabaya
Reply
November 16th, 2008 on 2:01 am
hehe. akoo masih 0.00
Sweet Thinker´s last blog post..Panggilan Kecemasan Untuk Lelaki Malaya
Reply
November 16th, 2008 on 2:13 am
ko power CSS…takkan aku lak nak ngajor nyer…hehe…ko pegi baca balik post ko Diberi betis nak peha tuh…hehe
Reply
November 16th, 2008 on 2:16 am
camana tuh kak jie..saya xleh nak bayangkan tuh…
Reply
November 16th, 2008 on 2:18 am
letak beb..jangan tak letak…
Reply
November 16th, 2008 on 2:18 am
no problemo !!
Reply
November 16th, 2008 on 2:19 am
thanks…cara nak reward pembaca2 blog ni….hehe
Reply
November 16th, 2008 on 2:22 am
thanks for the info bro..i tried a lot of adsense plugin but there’s no plugin that gave me the result i wanted…maybe i should try shylock adsense plugin…
Reply
November 16th, 2008 on 2:23 am
sbb aku comment pelik ko datang sini ek..lepas ni aku comment lg guna ayat2 pelik bg ko datang lg kat sini…hehe
Reply
November 16th, 2008 on 2:24 am
cari dalam index.php
tampal code sebelum code tersebut. huuuu!
Sweet Thinker´s last blog post..Panggilan Kecemasan Untuk Lelaki Malaya
Reply
November 16th, 2008 on 2:40 am
hmm…bagus gak idea tuh. kita gi blog orang pastu komen pelik2… mesti ada yg datang cari kita kat blog kita… hahaha
shaxx´s last blog post..Kuala Lumpur Jakarta Surabaya
Reply
November 16th, 2008 on 7:12 am
haha. ngek betol. xleh paste php code kat cni. huuuu!
nk letas ads pas satu artikel cari code nie >?php endwhile; ?< kendian tampal iklan sblm kode tersebut. kode tersebut boleh dijumpai dlm index.php / lagi satu leh tampal kat dlm single.php. sila godek2. kalo nk kod nufnang sila bg taw akoo ye. akoo nk rgstr belog korank lu. haha!
Sweet Thinker´s last blog post..Panggilan Kecemasan Untuk Lelaki Malaya
Reply
November 16th, 2008 on 11:43 am
hehe..idea baru tuh….aku nak try test kat orang lain…kt ko dah berjaya dah tuh….
Reply
November 16th, 2008 on 11:44 am
haha..dia nak jgk tuh…tp masalah nyer kalau ko register blog ngan nuffnang, tp lepas tuh nak register lg skali kat akaun lain..confirm xbleh punya…
Reply
November 16th, 2008 on 2:36 pm
Aku tanya dari segi konsep kemasukan iklan tu laa, dalam theme editing, bukan tanya bab CSS.
P/s: Nampak gaya seperti entri makan tuan nih
Reply
November 16th, 2008 on 3:14 pm
tuh la maksud aku..ko kena main ngan code dia la..aku bukan power sangat HTML ngan CSS ni…huuhuhuuhuhu~~
atau aku salah paham maksud ko ni ??
Reply
November 16th, 2008 on 3:55 pm
Aduhhh, bukan laa wei.
Aku cuma mintak idea ko, macam mana kalau kita nak letak adsense code dalam the_content(’Read more..’) tuh… tengah2 dia, baekkk punya…
Macam mana kalo tanak letak kat sebelum atau selepas post, tetapi di tengah2 post?
Ada paham?
ImamKhalid´s last blog post..Diberi betis nak peha!
Reply
November 18th, 2008 on 9:02 pm
dude, i tried your tutorial and it works perfectly the way i wanted it to be. Thanks for the tutorial.
TeRaBai´s last blog post..A New Theme A New Day
Reply
November 18th, 2008 on 10:12 pm
u dont use any plugins for adsense, like adsense deluxe? easier to maintain adsense using it.
Reply
November 18th, 2008 on 10:35 pm
i’m glad you enjoyed the tutorial ! check out my other tutorials and let me know if you have any problems with it. if you have anything in mind and want me to write a tutorial on it, i will be glad to do it !
Reply
November 18th, 2008 on 10:39 pm
so far adsense plug in that i used don’t satisfy me. so i use this and i’m happy with it. but i will check out adsense deluxe plugin..thanks for sharing !
Reply
November 19th, 2008 on 5:10 am
wah…nice tutorial br0..
Faiz´s last blog post..Cincin ! Owh ,Sakit !!!
Reply
November 19th, 2008 on 5:18 am
tenkiu2..jgn lupa mencuba ok ?
Reply
November 25th, 2008 on 1:54 am
Hey there..
Can you please help me with a blog on blogpost.
I want a 300*250 adsense block just after the title of my post…
Ankit´s last blog post..Why Buying Dividend Stocks will make you Rich
Reply
November 25th, 2008 on 2:03 am
I’m not too familiar with blogspot but the codings should be very similar. I can take a look at the codings and maybe I can figure out things about it.
Reply