Memasang Kode Adsense di Bawah Posting Blog | Blog Ayah Azzam Blog Ayah Azzam
Home » » Memasang Kode Adsense di Bawah Posting Blog

Memasang Kode Adsense di Bawah Posting Blog

Cara menampilkan atau memasang kode adsense di bawah posting. Biasanya jika ingin memasang adsense dibawah posting, kita harus mempersiapkan script code adsense tersebut terlebih dahulu. Kita ambil contoh dengan memasang adsensecamp, contoh codenya seperti ini :
<!-- Begin: http://adsensecamp.com/ -->
<script src="http://adsensecamp.com/show/?id=xxxxxxxxxxx&cid=xxxxxxxx&chan=xxxxxxxxxxx&type=2&title=CC0000&text=000000&background=FFFFFF&border=CC0000&url=0000FF" type="text/javascript">
</script>
<!-- End: http://adsensecamp.com/ -->
Pada saat ingin memasang script tersebut, kita menghadapi sedikit masalah, yaitu ada pesan error akan muncul pada template kita.
"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly. XML error message: The processing instruction target matching "[xx][mm][ll]" is not allowed."  Untuk bisa memasang script adsense dibawah postingan tanpa error message lagi, script code tersebut mesti di Parse terlebih dahulu. Apa itu diparse ? Parse adalah mengubah sedikit script code tersebut. Ilustrasinya anda lihat kembali script code di atas yang belum diparse, berikut contoh script code yang sudah diparse :
&lt;!-- Begin: http://adsensecamp.com/ --&gt;
&lt;script src=&quot;http://adsensecamp.com/show/?id=xxxxxxxxxxx&amp;cid=xxxxxxxx&amp;chan=xxxxxxxxxxx&amp;type=2&amp;title=CC0000&amp;text=000000&amp;background=FFFFFF&amp;border=CC0000&amp;url=0000FF&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;!-- End: http://adsensecamp.com/ --&gt;
Masih bingung cara mem-Parse script codenya, karena sekarang sudah banyak layanan untuk mempermudah kita dalam berkreasi, untuk memparse script code tersebut, anda bisa langsung menuju Blogcrowds saja, copy script anda dan paste pada box yang sudah disediakan, terus klik tombol "Parse".
Jika sudah diparse, sekarang script code adsense anda telah siap dipasang di blog
Adapun cara-cara memasang script code tersebut sebagai berikut :
Login ke account Blogger anda
Klik Tata Letak / Layout
Langsung menuju Edit HTML
Untuk mengantisipasi terjadinya kesalahan, ada baiknya anda mendownload template anda terlebih dahulu.
Centang tulisan Expand Widget Template di pojok kanan atas box template, tunggu beberapa saat kemudian cari code dibawah ini (contoh template yang memiliki sistem ReadMore) :
<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/>
<a expr:href='data:post.url'><strong>ReadMore...</strong></a></p>
</b:if>
Tempatkan script code adsense anda yang sudah di Parse tadi seperti contoh dibawah ini :
<b:if cond='data:blog.pageType == "item"'>
<style>.fullpost{display:inline;}</style>
<p><data:post.body/></p>
<br /> <br />
&lt;!-- Begin: http://adsensecamp.com/ --&gt;
&lt;script src=&quot;http://adsensecamp.com/show/?id=xxxxxxxxxxx&amp;cid=xxxxxxxx&amp;chan=xxxxxxxxxxx&amp;type=2&amp;title=CC0000&amp;text=000000&amp;background=FFFFFF&amp;border=CC0000&amp;url=0000FF&quot; type=&quot;text/javascript&quot;&gt;
&lt;/script&gt;
&lt;!-- End: http://adsensecamp.com/ --&gt;
<b:else/>
<style>.fullpost{display:none;}</style>
<p><data:post.body/>
<a expr:href='data:post.url'><strong>ReadMore...</strong></a></p>
</b:if> 
Simpan Template anda Sekarang coba lihat hasilnya


pemutih wajah alami
moreskin kosmetik alami dari NASA

0 comments:

jual Erhsali Peeling Spray Manfaat
Jual Sabun Erhsali Manfaat
Daftar Reseller gratis tanpa stok barang

Baca Lainnya

Herbal Diabetes
Herbagyn NASA
Herbagyn NASA
.comment-content a {display: none;}