Skip to main content

Cara menggabungkan Google CSE (Custome Search Engine) Box dengan Halaman Search WordPress

KitaKitaTau - Berikut cara menggabungkan Google CSE (Custome Search Engine) Box dengan Halaman Search WordPress
Sekarang kita akan menambahkan Google CSE kedalaman halaman pencarian blog anda.

Pasang Google CSE
  1. Silahkan daftar atau sign in langsung di Google CSE
  2. Isi semua form yang ada dan pastikan anda mengisi hanya url blog anda dengan memilih select my site only
  3. anda akan mendapatkan costum ID untuk CSE mu, kodenya seperti ini:654672547625472542:qwqwqee dan save pekerjaan anda
  4. Kemudian anda kopi kode berikut

<script src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load('search', '1');
function OnLoad() {
// Create a custom search control that uses a CSE restricted to code.google.com
var customSearchControl = new google.search.CustomSearchControl('Pasang ID CSE di sini');// Draw the control in content div
customSearchControl.draw('searchresult');// run a query
customSearchControl.execute('<?php echo "$s" ?>');
}
google.setOnLoadCallback(OnLoad);
</script>
<div id="searchresult">Loading...</div>

Kode ini adalah kode yang saya ambil dari Google Code Palyground CSE
  1. Pada kode di atas ganti kata “Pasang ID CSE di sini” dengan id CSE anda.
  2. Paste kode CSE itu tepat di atas <?php if (have_posts()) : ?>, jika merunut pada search.php WordPress Theme Default.

Comments

Popular posts from this blog

WHMpress v2.8.2 – WHMCS WordPress Integration Plugin

KitaKitaTau - WHMpress v2.8.2 – WHMCS WordPress Integration Plugin, the best of WHMCS  WordPress Integration tailored for small & medium hosts. It is more practical than any other integration/ WHMCS Bridge , an out of the box idea of integration that adds maximum value to your hosting business.  Showing WHMCS Packages, Price Lists and Order Buttons was not so easy without  WHMpress.  Choose WHMpress and you don’t need anything else to run your hosting business more smartly yet smoothly. WHMpress  fetches your hosting plan names, prices, order links & domain lists from WHMCS and shows in the form of fancy pricing tables, order combos, order buttons & domain price tables. It offers you Shortcodes to insert these components into your  WordPress   webhosting site exactly the way you want and where you want.  WHMpress   provide you with the tools that help you make webhosting site as good as hosting giants. Built from scratch by ...

Add Friends yg aman untuk akun fb klonengan

Ini tips dari saya berdasarkan pengalaman saya pelihara akun klonengan : Jangan sering-sering dibuka untuk 1 bulan pertama Ngeadd 20 orang saja untuk pertama kali daftar Pakai foto wanita cantik Sering buat status

Traffic Spirit Version:5.3.3

Traffic Spirit is a software to promote website mainly for Webmaster,Web Store,Twitter,Facebook and Blog to rapidly improve traffic (IP,PV,UV). It can fulfill all kinds of promotion requirements for website if flexible to use. Notice:Be able to share traffic when Spirit running,No traffic,No Spirit! Recent Version:5.3.3 File Size:292 KB Runtime Enviroment:XP,2003,Vista,Win7,Win8,Win10 Easy & Free 1, Forever free,No registration. 2, No setup,Single file. 3, Free&Full Support Service. Real & Effective 1, Mutual visit for traffic in different region. 2, Visit with browser under rule control. 3, Flexible use for different requirement. Safe & Reliable 1, Filter sound,Block pop-ups. 2, Block trojan virus,Stop bad script. 3, Professional team,Continual upgrade. Download