Senin, 01 Maret 2010

Adsense for Search

Untuk pengguna themes wordpress the blues, hasil pencarian adsense for search bisa langsung di tampilin dihalaman kita sendiri, kalo kamu liat di file-file themes the blues, disitu aku udah siapkan sebuah file dengan nama google.php untuk template Search Page.
Login ke admin wordpress, buat sebuah halaman baru, beri title Search, pada bagian Page Template, pilih Search Page kemudian klik tombol Create New Page untuk menyelesaikan membuat halaman. Maka halaman tersebut bisa kamu akses dari http://www.namadomain.com/search
Setelah selesai membuat halaman, silahkan login ke account adsense kamu, klik tab Adsense Setup, pilih AdSense for search
Search Type: Google WebSearch
Logo type: Google Logo
Background color: White
Length of text box: 18 characters
Opening of search results page : Open results within my own site

Enter URL where search results will be displayed : http://www.namadomain.com/search
Enter width of results area: 650 px
Kemudian klik Continue, pilih Palettes, Channel kalo ada dan klik Continue untuk mengambil code.
Yang perlu di copy adalah Your search box code: di copy ke file header.php sedangkan Your search results code: di copy ke file google.php (kalo kamu liat kode nya sama dengan yang udah ada disitu, jadi nggak perlu di copy lagi)

0 komentar:

Posting Komentar