<?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>HandymanHowto.com &#187; search</title>
	<atom:link href="http://www.handymanhowto.com/tag/search/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.handymanhowto.com</link>
	<description>Home improvement, maintenance and repair projects.</description>
	<lastBuildDate>Sun, 25 Jul 2010 12:27:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Google Custom Search Integration with WooThemes Fresh News 2.0 &#8211; Part 2</title>
		<link>http://www.handymanhowto.com/2009/09/13/google-custom-search-integration-with-woothemes-fresh-news-2-0-part-2/</link>
		<comments>http://www.handymanhowto.com/2009/09/13/google-custom-search-integration-with-woothemes-fresh-news-2-0-part-2/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 17:42:34 +0000</pubDate>
		<dc:creator>Bob Jackson</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fresh news]]></category>
		<category><![CDATA[google cse]]></category>
		<category><![CDATA[google custom search engine]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to integrate google custom search with wordpress]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[make money]]></category>
		<category><![CDATA[page template]]></category>
		<category><![CDATA[page.php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search.php]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[woothemes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.handymanhowto.com/?p=3308</guid>
		<description><![CDATA[This tutorial is continued from Part 1. Create a Search Results Page Template A new WordPress page template is created to display the Google Custom Search Results. The standard page.php template is formatted with a center column to display the page content that&#8217;s designed for a sidebar; and therefore too narrow for the 600 pixel [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial is continued from <a title="Google Custom Search Integration with WooThemes Fresh News 2.0 - Part 1" href="http://www.handymanhowto.com/2009/01/03/google-custom-search-integration-with-woo-themes-freshnews/" target="_blank">Part 1</a>.</p>
<h3>Create a Search Results Page Template</h3>
<p>A new <a title="WordPress Page Templates" href="http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates" target="_blank">WordPress page template</a> is created to display the Google Custom Search Results. The standard page.php template is formatted with a center column to display the page content that&#8217;s designed for a sidebar; and therefore <strong>too narrow</strong> for the 600 pixel wide Google search results. Therefore, a new search results page template is created to display the full screen width.</p>
<p>Before you begin, <span style="color: #ff0000;">make a full backup of your WordPress site<span style="color: #000000;"> &#8230; just in case. </span></span></p>
<p><span id="more-3308"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2484226848394294";
google_ad_slot = "3301193618";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h4>Step 1: Copy the <span style="color: #800000;">page.php</span> template file to make a new <span style="color: #800000;">search.php</span> file</h4>
<ul>
<li>This creates a search results page template.</li>
<li>Use File Manager in cPanel to copy and rename the file.</li>
<li>Place the search.php file in the <strong>/public_html/wp-content/themes/freshnews</strong> directory with the other page templates (e.g. header.php, footer.php, etc).</li>
</ul>
<h4>Step 2: Edit search.php file</h4>
<p>Log in as the Site Admin to your WordPress blog.</p>
<p>Use the Theme Editor in the WordPress Admin Panel to edit the search.php Template File as shown in the following image.</p>
<ul>
<li>Add a Template Name Comment at the top, call it &#8216;Search Results&#8217;</li>
<li>Comment out the centercol div element</li>
<li>Delete the call to get_sidebar()</li>
<li>When done, click Update File in the Theme Editor to save the changes.</li>
</ul>
<div id="attachment_3295" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/search-template-php.png"><img class="size-medium wp-image-3295  " title="Edits to search.php page template" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/search-template-php-450x332.png" alt="Edits to search.php page template" width="450" height="332" /></a><p class="wp-caption-text">Edits to search.php page template</p></div>
<p>The edits are generic and you should be able to reuse my search.php page template without modifications. You can get my file here: <a title="search.php page template file" href="http://www.handymanhowto.com/wp-content/uploads/2009/01/search_php.txt" target="_blank">search.php</a></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2484226848394294";
google_ad_slot = "3301193618";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3>Create a Search Page to Display the Google Custom Search Results</h3>
<ul>
<li>Create a new page named <strong>Search</strong> via the <strong>Page → Add New </strong>command on the left menu in the Admin panel.</li>
<li>Edit the post slug if needed to ensure Permalink is <strong>http://your_domain_name/search/</strong></li>
<li>Click the <strong>HTML</strong> tab in the post editor.</li>
<li>Paste the Google Search result code.</li>
<li>Save and publish the page. This will create the Page ID.</li>
<li>Edit the page again.</li>
<li>Write down the Page ID as given in the URL of the web browser because it will be needed later. The Page ID is the number after the &#8220;post=&#8221; argument. In my case, the Search Page ID is <span style="color: #ff0000;"><strong>7</strong></span> in the URL:<br />
http://www.handymanhowto.com/wp-admin/page.php?action=edit&amp;post=<strong><span style="color: #ff0000;">7</span></strong></li>
<li>Assign the <strong>Search Results</strong> page template in the drop down menu as shown (lower left in the image below).</li>
<li>Save and publish the page.</li>
</ul>
<p>Click on the image below for a full size view.</p>
<div id="attachment_3301" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/Search-Page-for-Google-Custom-Search.png"><img class="size-medium wp-image-3301" title="Search Page for Google Custom Search" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/Search-Page-for-Google-Custom-Search-450x281.png" alt="Search Page for Google Custom Search" width="450" height="281" /></a><p class="wp-caption-text">Search Page for Google Custom Search</p></div>
<p>Next, the Google Custom Search box will be added to the page header.</p>
<h3>Changes to header.php</h3>
<p>Now we&#8217;ll add the Google Custom Search Control to the page header and make a cosmetic change suppress the Search page from showing in the main menu.</p>
<h4>Cosmetic Change</h4>
<p>The Search page is shown by default in the menu bar at the very top of the web page. If a visitor to your site clicks on the Search menu item, an empty Search page will be displayed, which is confusing.</p>
<p>To remove the Search page from the header menu:</p>
<ul>
<li>Edit the <strong>header.php</strong> file in the freshnews theme directory (e.g. <strong>/public_html/wp-content/themes/freshnews/header.php</strong>). You can make the changes to header.php using the WordPress Theme Editor.</li>
<li>Add the code <strong>&amp;exclude=&lt;your Search Page ID&gt;</strong> to the wp_list_pages() function as shown in the image below.<br />
→ Recall the Search Page ID was written down when the Search page was created (see above). The Page ID for my Search page is <strong>7</strong>.</li>
</ul>
<div id="attachment_3293" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-Exclude-Search-Page-from-Main-Menu.png"><img class="size-medium wp-image-3293" title="header.php - Exclude the Search page from Main Menu" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-Exclude-Search-Page-from-Main-Menu-450x281.png" alt="header.php - Exclude the Search page from Main Menu" width="450" height="281" /></a><p class="wp-caption-text">header.php - Exclude the Search page from Main Menu</p></div>
<p>continue to the next step&#8230;</p>
<h4>Add the Google Custom Search Box to the Page Header</h4>
<p>While still editing header.php,  replace the default search box code as highlighted:</p>
<div id="attachment_3291" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-default-Search-code.png"><img class="size-medium wp-image-3291" title="header.php - Default Search Code" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-default-Search-code-450x281.png" alt="header.php - Default Search Code" width="450" height="281" /></a><p class="wp-caption-text">header.php - Default Search Code</p></div>
<p>with the Google Search box code as shown below. Also add the <strong>&lt;br&gt;</strong> HTML code as indicated to move the Search box submit button below the text input control.</p>
<div id="attachment_3292" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-Google-Custom-Search-code.png"><img class="size-medium wp-image-3292" title="header.php - Google Custom Search code" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php-Google-Custom-Search-code-450x281.png" alt="header.php - Google Custom Search code" width="450" height="281" /></a><p class="wp-caption-text">header.php - Google Custom Search code</p></div>
<p>The modified Fresh News v2.0.7 header.php file for my site is here: <a title="header.php page template file" href="http://www.handymanhowto.com/wp-content/uploads/2009/01/header_php.txt" target="_blank">header.php</a></p>
<blockquote><p><strong>Remember: </strong></p>
<p>Your Search page URL, Page ID and Adsense Publisher ID values <strong>will be different from mine</strong> and should be changed in your version of header.php. Or you can use mine if you like giving me your Adsense revenue. (smile)</p></blockquote>
<p>Save and test your new Google Custom Search Engine.</p>
<p>Remember, to re-edit the <strong>header.php</strong> and possibly the <strong>search.php</strong> templates if you install a Fresh News theme update.</p>
<p>Hope this helps,</p>
<p>Bob Jackson</p>
<p></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It!</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F" rel="nofollow" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F09%2F13%2Fgoogle-custom-search-integration-with-woothemes-fresh-news-2-0-part-2%2F&amp;t=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+2" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.handymanhowto.com/2009/09/13/google-custom-search-integration-with-woothemes-fresh-news-2-0-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Google Custom Search Integration with WooThemes Fresh News 2.0 &#8211; Part 1</title>
		<link>http://www.handymanhowto.com/2009/01/03/google-custom-search-integration-with-woo-themes-freshnews/</link>
		<comments>http://www.handymanhowto.com/2009/01/03/google-custom-search-integration-with-woo-themes-freshnews/#comments</comments>
		<pubDate>Sat, 03 Jan 2009 17:33:01 +0000</pubDate>
		<dc:creator>Bob Jackson</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[cse]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fresh news]]></category>
		<category><![CDATA[google custom search engine]]></category>
		<category><![CDATA[header.php]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[how to integrate google custom search with wordpress]]></category>
		<category><![CDATA[instructions]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[make money]]></category>
		<category><![CDATA[page template]]></category>
		<category><![CDATA[page.php]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[search.php]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[source code]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[woothemes]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.handymanhowto.com/?p=1083</guid>
		<description><![CDATA[Newly revised and updated for Fresh News 2.0! I wanted to replace the WordPress search engine with the Google Custom Search Engine (CSE) for better results and to take advantage of Adsense for Search. While there are several CSE integration tutorials for WordPress and even a plugin, none specifically addressed Woo Themes. My efforts were [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Newly revised and updated for <a title="Fresh News 2.0 by WooThemes" href="http://www.woothemes.com/2009/06/fresh-news-2-0/" target="_blank">Fresh News 2.0</a>!</strong></p>
<p>I wanted to replace the WordPress search engine with the Google Custom Search Engine (CSE) for better results and to take advantage of Adsense for Search. While there are several <a title="How to Set up Google Custom Search for Your Website and Make Money" href="http://www.doshdosh.com/how-to-set-up-google-custom-search-and-make-money/" target="_blank">CSE integration tutorials for WordPress</a> and even a <a title="Google Custom Search Plugin for WordPress" href="http://aleembawany.com/projects/wordpress/google-custom-search-plugin/" target="_blank">plugin</a>, none specifically addressed <a title="WooThemes" href="http://www.woothemes.com/" target="_blank">Woo Themes</a>. My efforts were further frustrated because the coding strategies outlined in the existing tutorials didn’t entirely work for me and the WordPress plugin failed to install with a PHP parse error.</p>
<p>My requirements for Google Custom Search are:</p>
<ul>
<li>Search box must appear in the same position as the default search box to the top right in the theme header.</li>
<li>Due to the limited width of the FreshNews DIV element (block level container) in the header for the search box, the “Search” button needed to appear <strong>below</strong> the text input control instead of to the right.</li>
<li>The side bar <strong>must not</strong> be displayed on the Google Search Results page, because Google takes the full page width (600 pixels) and the sidebar will overlay the search results.</li>
</ul>
<p><span id="more-1083"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2484226848394294";
google_ad_slot = "3301193618";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3>Google Custom Search Engine Demo</h3>
<p>Go to <a title="HandymanHowTo.com" href="http://www.handymanhowto.com" target="_blank">www.handymanhowto.com</a> to see the Google Custom Search integration with Fresh News 2.0. The following illustrates the Google Custom Search box (red arrow):</p>
<div id="attachment_3288" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/HandyManHowTo-Google-Custom-Search.png"><img class="size-medium wp-image-3288" title="HandyManHowTo.com - Google Custom Search" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/HandyManHowTo-Google-Custom-Search-450x281.png" alt="HandyManHowTo.com - Google Custom Search" width="450" height="281" /></a><p class="wp-caption-text">HandyManHowTo.com - Google Custom Search</p></div>
<p>and the Google Custom Search results page for the phrase &#8220;pvc pipe&#8221;:</p>
<div id="attachment_3289" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/HandyManHowTo-Google-Custom-Search-Results.png"><img class="size-medium wp-image-3289" title="HandyManHowTo.com - Google Custom Search Results Page" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/HandyManHowTo-Google-Custom-Search-Results-450x281.png" alt="HandyManHowTo.com - Google Custom Search Results Page" width="450" height="281" /></a><p class="wp-caption-text">HandyManHowTo.com - Google Custom Search Results Page</p></div>
<p>Google does an excellent job of indexing and searching your site.</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-2484226848394294";
google_ad_slot = "3301193618";
google_ad_width = 336;
google_ad_height = 280;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h3>How to integrate Google Custom Search to <a title="FreshNews Theme for WordPress by Woo Themes" href="http://www.woothemes.com/2008/04/fresh-news/" target="_blank">Fresh News 2.0</a></h3>
<ul>
<li>Go to <a title="Google Custom Search Engine" href="http://www.google.com/coop/cse/" target="_blank">http://www.google.com/coop/cse/</a> and register for an account. If you already have an Adsense account, login with those credentials.</li>
<li>Create a New Search Engine.</li>
<li>Under the “Look and Feel” tab, choose the first style with the watermark. Click on the following image for a larger view.</li>
</ul>
<div id="attachment_1088" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-look-and-feel.jpg"><img class="size-medium wp-image-1088" title="Google Custom Search Engine - Look and Feel" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-look-and-feel-450x243.jpg" alt="Google Custom Search Engine - Look and Feel" width="450" height="243" /></a><p class="wp-caption-text">Google Custom Search Engine - Look and Feel</p></div>
<p>On the Code tab:</p>
<ul>
<li>choose the <strong>iframe</strong> option;</li>
<li>specify a URL http://your_domain_name<strong>/search/</strong></li>
<li>place advertising on the <strong>Right</strong>.</li>
</ul>
<div id="attachment_1085" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-code.jpg"><img class="size-medium wp-image-1085" title="Google Custom Search Engine - Code" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-code-450x299.jpg" alt="Google Custom Search Engine - Code" width="450" height="299" /></a><p class="wp-caption-text">Google Custom Search Engine - Code</p></div>
<p>Copy the “<strong>Search box code</strong>” and “<strong>Search results code</strong>”. The code samples for my site are:</p>
<h4>Search box code</h4>
<blockquote>
<pre>&lt;style type="text/css"&gt;</pre>
<pre>@import url(http://www.google.com/cse/api/branding.css);</pre>
<pre>&lt;/style&gt;</pre>
<pre>&lt;div class="cse-branding-bottom" style="background-color:#000000;color:#FFFFFF"&gt;</pre>
<pre>  &lt;div class="cse-branding-form"&gt;</pre>
<pre>    &lt;form action="http://www.handymanhowto.com/search/" id="cse-search-box"&gt;</pre>
<pre>      &lt;div&gt;</pre>
<pre>        &lt;input type="hidden" name="cx" value="<span style="color: #ff0000;">006667729864162168081:5u85mytsil8</span>" /&gt;</pre>
<pre>        &lt;input type="hidden" name="cof" value="FORID:9" /&gt;</pre>
<pre>        &lt;input type="hidden" name="ie" value="UTF-8" /&gt;</pre>
<pre>        &lt;input type="text" name="q" size="31" /&gt;</pre>
<pre>        &lt;input type="submit" name="sa" value="Search" /&gt;</pre>
<pre>      &lt;/div&gt;</pre>
<pre>    &lt;/form&gt;</pre>
<pre>  &lt;/div&gt;</pre>
<pre>  &lt;div class="cse-branding-logo"&gt;</pre>
<pre>    &lt;img src="http://www.google.com/images/poweredby_transparent/poweredby_000000.gif" alt="Google" /&gt;</pre>
<pre>  &lt;/div&gt;</pre>
<pre>  &lt;div class="cse-branding-text"&gt;</pre>
<pre>    Custom Search</pre>
<pre>  &lt;/div&gt;</pre>
<pre>&lt;/div&gt;</pre>
</blockquote>
<p>Note the key value highlighted above in <span style="color: #ff0000;">red</span> will be different for your web site.</p>
<h4>Search result code</h4>
<blockquote>
<pre>&lt;div id="cse-search-results"&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
&lt;/script&gt;
&lt;script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"&gt;&lt;/script&gt;</pre>
</blockquote>
<p>Click on the Make Money tab to link the Custom Search Engine (CSE) to your Adsense account. My CSE has already been linked with my Adsense account.</p>
<div id="attachment_1089" class="wp-caption alignnone" style="width: 460px"><a href="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-make-money.jpg"><img class="size-medium wp-image-1089" title="Google Custom Search - Make Money" src="http://www.handymanhowto.com/wp-content/uploads/2009/01/cse-make-money-450x134.jpg" alt="Google Custom Search - Make Money" width="450" height="134" /></a><p class="wp-caption-text">Google Custom Search - Make Money</p></div>
<p>This tutorial is continued in <a title="Google Custom Search Integration with WooThemes Fresh News – Part 2" href="http://www.handymanhowto.com/2009/09/13/google-custom-search-integration-with-woothemes-fresh-news-2-0-part-2/" target="_blank">Part 2</a>.</p>
<p>Hope this helps,</p>
<p>Bob Jackson</p>
<p></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It!</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;title=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.squidoo.com/lensmaster/bookmark?http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F" rel="nofollow" title="Add to&nbsp;Squidoo"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/squidoo.png" title="Add to&nbsp;Squidoo" alt="Add to&nbsp;Squidoo" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http%3A%2F%2Fwww.handymanhowto.com%2F2009%2F01%2F03%2Fgoogle-custom-search-integration-with-woo-themes-freshnews%2F&amp;t=Google+Custom+Search+Integration+with+WooThemes+Fresh+News+2.0+%26%238211%3B+Part+1" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://www.handymanhowto.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://www.handymanhowto.com/2009/01/03/google-custom-search-integration-with-woo-themes-freshnews/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
