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;

WordPress Emails Stop Working on Godaddy


If you have not been receiving Form mail, registration, or subscription notifications from your WordPress site, and Godaddy is your web host provider, it may be due to some recent changes or rather policy implementations made by Godaddy.

WordPress mail notifications are sent using native PHP mail().  This is the same no matter which subscription or form plugins you are using like CForms II or Subscribe2, any forum or other mail handling plugins.  Some provide the option to use separate PHP or SMTP mail handing scripts, but most rely on the native WordPress registration email.  Per Godaddy:

If you use the mail() function in your PHP, you do not need to specify an outgoing mail server. If you are using some other method besides mail() in your PHP code, use relay-hosting.secureserver.net for your relay server.

NOTE: A maximum of 1000 emails per day are allowed through our relay servers.

AND MOST IMPORTANTLY:

Our mail server will not send email containing a “From:” header entry of aol, gmail, yahoo, hotmail, live, aim, or msn.

So if your WordPress administrative email account is setup under one of these mail providers, you have 2 options to ensure you receive mail from and are able to send mail to visitors.

A.  Change your WordPress Administrative email to name@yourdomain.com.  Godaddy typically offers a free 1G email account with hosting.  Don’t forget to change the FROM:  line in any Form or subscription settings you have.

B.  If you have multiple WordPress accounts you manage under your current email, and don’t want to change the WP administrative email, you can use a plugin like WP-Mail-SMTP to either configure SMTP mail or to change the FROM: email to another supported domain like yourdomain.com.  If you prefer to use gmail, or another you check regularly, I recommend doing the following:

  1. From godaddy, create an email account on your domain.  Set up CC: to send to your preferred email as well. 
  2. Install the WP-Mail-SMTP  plugin and activate it.
  3. Settings -> Email.  From Email:  yourgodaddyemail@yourdomain.com.
  4. From Name:  The name you want to use.
  5. Mailer:  Use the PHP mail() function to send emails.
  6. SMTP Host:  relay-hosting.secureserver.net
  7. SMTP Port: 25
  8. Encryption:  No Encryption
  9. Authentication:  Yes, Use SMTP Authentication
  10. Username: yourgodaddyemail@yourdomain.com
  11. Password:  Your godaddy email password
  12. Update
  13. Update your new FROM: email address in any forms, subscriptions, forum, etc plugin settings
  14. Test

WPDirectory Pro Forum


Inforats launches a forum for users to find and share information on computer support, WordPress, and the WPDirectory Pro Plugin.  We were interested in using and applying the WPDirectory Pro plugin.  While checking it out, we realized that support and now the ability to purchase the plugin has stopped.  Many customers are left with no support and many questions on using the directory so we’ve created a forum group to cover this specific issue. [Read more...]

Genesis Theme Settings

Professional All Themes Pack

Why is the Genesis family of WordPress themes used by developers?

The Genesis Theme framework provides additional theme options for managing how your website appears to visitors.  Move away from the traditional blogroll and Widgetize your landing page!

Not sure what Widgetized Home Page means?

Check out our Home Page ->  Inforats.com.  Through Appearance->Widgets, I am able to manage specific content areas on my landing page to create a more professional website experience.  You no longer have to Create a ‘sticky’ post and manage your homepage content via post/page edit.

Check out even more controls and features with Genesis:

 

[Read more...]