<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>John Pope &#187; custom search</title>
	<atom:link href="http://www.johnpopes.com/tag/custom-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnpopes.com</link>
	<description>Gadgets, Build a Website, Computer Tips and Tricks</description>
	<lastBuildDate>Mon, 12 Mar 2012 13:56:14 +0000</lastBuildDate>
	<language>EN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>How to integrate Google Custom Search in WordPress</title>
		<link>http://www.johnpopes.com/wordpress/how-to-integrate-google-custom-search-in-wordpress-1337/</link>
		<comments>http://www.johnpopes.com/wordpress/how-to-integrate-google-custom-search-in-wordpress-1337/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 08:23:19 +0000</pubDate>
		<dc:creator>John Pope</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[custom search]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[make money]]></category>

		<guid isPermaLink="false">http://www.johnpopes.com/?p=1337</guid>
		<description><![CDATA[First of all, what is Google Custom search? Simply put is a search tool that you can integrate in your website so when someone looks for something on your website the results page uses Google&#226;&#8364;&#8482;s search engine to seek the correct pages through your entire website. On the plus side, besides better search results (after [...]<p><div style="background: #eee; padding: 5px;"><a href="http://www.johnpopes.com/wordpress/how-to-integrate-google-custom-search-in-wordpress-1337/">How to integrate Google Custom Search in WordPress</a> is an article from <a href="http://www.johnpopes.com" target="_blank" title="JohnPopes.com - Internet, Marketing, Business, Gadgets ">JohnPopes.com</a> blog.
<br/>Copyright 2007-2009</div></p>
]]></description>
			<content:encoded><![CDATA[
<p>First of all, what is Google Custom search? Simply put is a search tool that you can integrate in your website so when someone looks for something on your website the results page uses Google&acirc;&euro;&trade;s search engine to seek the correct pages through your entire website. On the plus side, besides better search results (after all Google is the king of search), you can earn some extra money via Adsense if someone clicks on the the ads Google displays into the search results page.</p>
<div id="attachment_1340" class="wp-caption aligncenter" style="width: 309px"><img class="size-full wp-image-1340" title="Google custom search is still in beta" src="http://www.johnpopes.com/wp-content/uploads/2009/11/google-custom-search.jpg" alt="Google custom search is still in beta" width="299" height="59"><p class="wp-caption-text">Google custom search is still in beta</p></div>
<p>In this post I&acirc;&euro;&trade;ll treat the case of integrating the <a href="http://www.google.com/cse/">Google Custom search engine</a> in WordPress, the most used free software platform for blogging.</p>
<h3>What do you need?</h3>
<ul><li>A blog running a self      hosted version of WordPress. Sorry guy, but no wordpress.com domains.</li>
<li>An HTML editor (I use <a href="http://notepad-plus.sourceforge.net/uk/site.htm">Notepad ++</a>)</li>
<li>FTP client (I use <a href="http://filezilla-project.org/">FileZilla</a>)</li>
<li>An <a href="http://www.google.com/adsense/">AdSense </a>account</li>
<li>Some time and a few      HTML/CSS knowledge</li>
</ul><h3>Steps required to integrate custom search in WordPress</h3>
<p>First, you have to sign in to your Google AdSense account and create a new ad slot for the custom search results ads: Adsense Setup &acirc;&euro;&ldquo; AdSense for Search. Once you get here select &acirc;&euro;&oelig;Single page&acirc;&euro;&#157; to have all options on one page. I&acirc;&euro;&trade;ll explain to you what every field means:</p>
<ul><li><strong>Search type:</strong> specifies      where to search, the Internet or only your site</li>
<li><strong>Selected sites:</strong> put here      every site URL you wish to search, one per each line</li>
<li><strong>Optional Keywords:</strong> if      there&acirc;&euro;&trade; any word combination you wish to add to the string of chars the      used inputs in the Custom Search field here&acirc;&euro;&trade;s the place to mention them</li>
<li><strong>Site language: </strong>self      explanatory, is the language your blog uses</li>
<li><strong>Your site encoding:</strong> go to      your blog, right click on a free space, select &acirc;&euro;&oelig;View Source&acirc;&euro;&#157; and look for &acirc;&euro;&oelig;charset&acirc;&euro;&#157;.      Select in the Adsense drop down list the encoding your website uses</li>
<li><strong>Country or territory for      Google domain:</strong> to better list localized search results Google needs to      know the region of your website&acirc;&euro;&trade;s visitors, where most of them come from</li>
<li><strong>Custom channel:</strong> give a      name to the ad channel to better track its results in your Adsense reports</li>
<li><strong>Safe Search: </strong>specify if      you want adult content to be omitted from displayed results</li>
<li><strong>Look and Feel:</strong> choose from      a few themes available for the search box</li>
<li><strong>Text Box Length: </strong>specify      the size of the search box as it will appear on your site</li>
<li><strong>Opening of search results      page:</strong> here you&acirc;&euro;&trade;ll specify how the search results page will look like.      Options are in the same page, in new windows (easiest to implement), or in      a dedicated page on your site. For the last option you have to create a      page on your blog (page, not post) and give it a name that you&acirc;&euro;&trade;ll specify      in this Adsense wizard. Mine is called &acirc;&euro;&oelig;search&acirc;&euro;&#157;, so the URL is <strong>http://www.johnpopes.com/search</strong>.      Also enter the width of the search results area so that it will fit your      theme layout.</li>
<li><strong>Ad location:</strong> where should      google display ads on your search results page. Depending on what you      choose the aforementioned Width of the results area has a bigger minimum value.</li>
<li><strong>The Palettes:</strong> here you&acirc;&euro;&trade;ll      change the colors of the search results. Every change is reflected in a      sample box on the left.</li>
<li><strong>Agree </strong>with the special      terms</li>
<li><strong>Enter a name</strong> for this particular      search unit and hit &acirc;&euro;&oelig;<em>Submit and Get Code</em>&acirc;&euro;&#157;</li>
</ul>
<div id="attachment_1338" class="wp-caption aligncenter" style="width: 330px"><a href="http://www.johnpopes.com/wp-content/uploads/2009/11/code-wizard-adsense-custom-search.png"><img class="size-large wp-image-1338" title="The long Adsense setup wizard" src="http://www.johnpopes.com/wp-content/uploads/2009/11/code-wizard-adsense-custom-search-320x600.png" alt="The long Adsense setup wizard" width="320" height="600"></a><p class="wp-caption-text">The long Adsense setup wizard (click for large image)</p></div>
<p>Now you&acirc;&euro;&trade;re presented with two codes (if you chose to display results in the same page or in another page on your blog, not in a new window. Now the input box code goes in your theme. Mine was <strong>searchform.php</strong>. The second one goes into the page template (here is more info on <a href="http://www.wordpressmax.com/customize-wordpress/custom-page">how to create a WordPress page template</a>) I&acirc;&euro;&trade;ve created starting with <strong>page.php</strong> and replaced the part with <strong>the_content()</strong>. Use this template when creating the page that will you&acirc;&euro;&trade;re your results (see the &acirc;&euro;&oelig;Opening of search results page&acirc;&euro;&#157; step). Remember that those file names in your WordPress theme may be different, but also look for the code that displays your normal search box and create a new template for pages, where you replace the content with the provided code by Adsense.</p>
<div id="attachment_1339" class="wp-caption aligncenter" style="width: 610px"><a href="http://www.johnpopes.com/wp-content/uploads/2009/11/custom-search-results.png"><img class="size-large wp-image-1339" title="Custom search results on my blog" src="http://www.johnpopes.com/wp-content/uploads/2009/11/custom-search-results-600x479.png" alt="Custom search results on my blog" width="600" height="479"></a><p class="wp-caption-text">Custom search results on my blog</p></div>
<p>If you want to change the look of the Custom Search you have to log back in Google Adsense and hit Adsense Setup &acirc;&euro;&ldquo; Manage Ads and Edit on your Custom Search module. That&acirc;&euro;&trade;s it. If you get stuck at one step or need more clarification don&acirc;&euro;&trade;t hesitate to post a comment below and I&acirc;&euro;&trade;ll help you.</p>
<p><div style="background: #eee; padding: 5px;"><a href="http://www.johnpopes.com/wordpress/how-to-integrate-google-custom-search-in-wordpress-1337/">How to integrate Google Custom Search in WordPress</a> is an article from <a href="http://www.johnpopes.com" target="_blank" title="JohnPopes.com - Internet, Marketing, Business, Gadgets ">JohnPopes.com</a> blog.
<br/>Copyright 2007-2009</div></p>
<h3  class="related_post_title">Similar stories you might enjoy</h3><ul class="related_post"><li><a href="http://www.johnpopes.com/internet/why-i-dont-like-google-buzz-1479/" title="Why I don&#8217;t like Google Buzz">Why I don&#8217;t like Google Buzz</a></li><li><a href="http://www.johnpopes.com/making-money/the-easy-to-digest-story-of-success-1448/" title="The easy to digest story of success">The easy to digest story of success</a></li><li><a href="http://www.johnpopes.com/internet/we-all-live-in-a-google-world-1326/" title="We all live in a Google world">We all live in a Google world</a></li><li><a href="http://www.johnpopes.com/internet/google-analytics-a-short-introduction-to-web-traffic-analysis-1252/" title="Google Analytics, a short introduction to web traffic analysis">Google Analytics, a short introduction to web traffic analysis</a></li><li><a href="http://www.johnpopes.com/internet/the-email-replacement-is-coming-not-1153/" title="The Email replacement is coming&#8230;not!">The Email replacement is coming&#8230;not!</a></li></ul><script type="text/javascript">
		setTimeout(function () {
			var link = document.createElement("link");
			link.rel = "stylesheet";
			link.href= "http://dtmvdvtzf8rz0.cloudfront.net/static/css/plain.css";
			link.type= "text/css";
			document.getElementsByTagName("body")[0].appendChild(link);
		}, 1);
		</script>]]></content:encoded>
			<wfw:commentRss>http://www.johnpopes.com/wordpress/how-to-integrate-google-custom-search-in-wordpress-1337/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
