Enhanced Search Bar on WordPress


Configuring your WordPress Google SearchA lot of WordPress installations and themes will include a search widget, allowing visitors to search your site for specific content. There are also a half-dozen WP plugins available as well which allow for advanced settings and options of your search code. With all the available search plugins, I still prefer Google Site Search which is easily the most powerful search tool out there, especially with content search. Adding a working search engine to your site helps keep visitors on your website, helps increase sales and turn-over for product search, and allows you to customize and tailor search results for look and results. The only draw back is if you want the ad-free version, there is a fee involved. So why not set up an enhanced Search tool that pays you? Setup a Google AdSense account and you can utlize on-site customizable search, ad-supported, and get paid for click throughs to sponsors.

There are 2 elements to configuring your Google Search:  The Search Bar, and the Search Results. Configuration is done through your Google AdSense, and additional tweaking can be done at the code level:

  1. For this example, Create a page on your WordPress site called ‘Search’
  2. Login to your Google AdSense account.  Select the ‘AdSense Setup’ Tab.
  3. Select AdSense fo Search.
  4. Select ‘Only sites I select’ under Search Type.
  5. Enter the URL of the sites you wish to include in your search results.  If you maintain multiple websites and want results for all of them displayed, you can customize those options here.
  6. Select other options such as keywords, language, etc. and click ‘Continue’
  7. Select the look and feel of the search bar.  By default the selection has the Google text within the toolbar text area.  If you select another optional appearance, you can change the background to match the background css of the area you place the search bar later.  Just select the one that closely matches your website for now.
  8. Select Text Box Length, and click “Continue’.
  9. Now you can select where you want your search results to appear.  I recommend ‘Open results within my own site’ and enter the address of a page you’d like to use for search, i.e:  ‘http://www.inforats.com/search’
  10. By default, ‘Enter width of search area’ is set to 800px.  If your content area is smaller than 800, you can change this later to fit your WordPress site.
  11. Select your add locations and then customize the results to match your website.  The closer it is and more natural it appears will increase chances of clicks-throughs to displayed advertisements.  Click ‘Continue’
  12. Check the radio button and name your Search Campaign.  Click ‘Submit and get Code.”

Now you should have 2 snipets of code to drop into your site.  The ‘Search Box Code’, and the ‘Search Results Code’.

Search Box Code.  You can place this code in your sidebar in a Text/html widget, at the top of pages or posts, or any other widgetized area.  On Inforats, the search bar is placed in the header-right widgetized area using the Genesis Framework and on the search page itself.  If you selected one of the codes that use a background color, you can change this color to match your css by changing this line:

<div style=”background-color:#000000;color:#FFFFFF”> 

Example, to make the google search background transparent:

<div style=”background-color:#transparent;color:#FFFFFF”>

Search Results Code.  Go to edit your search page and drop this code in.  The width or size set by default is 800px.  You can adjust this by editing the following line:

var googleSearchFrameWidth = 800;

Example,on inforats, the width was adjusted to 625px to fit:

var googleSearchFrameWidth = 625;

Share

Google PageRank Shutdown


The last confirmed Google PageRank update was on April 03, 2010. That is 9 months at the time of this article, 2/3s of a year.  Scouring through Google’s Toolbar support site, news articles, forums, and more, there is not one (well published at least) mention of an official stance on the tool, and any response to hundreds of blogs, articles, and forums discussing this very issue.  Whether this is planned or unscheduled, or whether the Google PageRank tool will ever be updated.  Previously, the PageRank function seemed to update on a ‘close-to’ quarterly schedule.  With the ever-changing dynamics of web traffic and link popularity, I’d say nine months with no update equals a discarded web-ranking program.  Google PR is shutdown and I have ‘officially’ removed the enhanced feature from my Google Toolbar. [Read more...]

Share

My PageRank Is Better Than Yours


What is all this hype about PR and how do I make this number go higher? Pagerank is nothing more than Google’s own method of ranking a site’s importance based on number and quality of backlinks (incoming links). Anyone can rank a site. If you like a site, feel free to give it your own personal ranking: Thumbs up or thumbs down, 1-5 stars, whatever. It just so happens that 2 major company’s ranking systems are widely held as the primary methods for judging a sites value:  Google’s PR and Alexa’s Traffic Rank.  [Read more...]

Share

Google vs. China – What Really Happened?



google china censorshipJust think about it.  The world’s leading search engine provider, Google.  A company built by hackers, programmers, and imagination.  People who say “We can make that work”.  A company like google, hit by a group of ill-trained, behind the times, censoring government robots.  What do you think happened?  What was the actual events leading to the headlines we read today? [Read more...]

Share