Blog Help

  Homes arrow Blog Help arrow Page 4 - Add Google Custom Search to WordPress Blogs
 Webmaster Tools
 
Base64 Encoding 
Browser Settings 
CSS Coder 
CSS Navigation Menu 
Datetime Converter 
DHTML Tooltip 
Dig Utility 
DNS Utility 
Dropdown Menu 
Fetch Content 
Fetch Header 
Floating Layer 
htaccess Generator 
HTML to PHP 
HTML Encoder 
HTML Entities 
IP Convert 
Meta Tags 
Password Encryption
 
Password Strength
 
Pattern Extractor 
Ping Utility 
Pop-Up Window 
Regex Extractor 
Regex Match 
Scrollbar Color 
Source Viewer 
Syntax Highlighting 
URL Encoding 
Web Safe Colors 
Forums Sitemap 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us 
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BLOG HELP

Add Google Custom Search to WordPress Blogs
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2010-04-07

    Table of Contents:
  • Add Google Custom Search to WordPress Blogs
  • Configuring Custom Search Using Your Google AdSense Account
  • Integrate Custom Search into Your Blog
  • Excluding the Google Custom Search Result Page in WordPress Navigation

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     

    SEARCH DEV MECHANIC

    TOOLS YOU CAN USE

    advertisement

    Add Google Custom Search to WordPress Blogs - Excluding the Google Custom Search Result Page in WordPress Navigation


    (Page 4 of 4 )

    Depending on how your blog has been configured or set up, you can exclude the Google Custom Search Result page in three different ways.

    If you are using a widget to display pages (e.g in your sidebar navigation), you can customize that widget to exclude the WordPress search result page powered by Google Custom Search. To do this, go to Appearance -> Widgets, click Pages and enter the Page ID of the search result page to exclude.

    The page ID can be found in the URL. If you go to Pages -> Edit and click the search result page, the URL can look similar to this (again, using my own site as an example):

    http://www.php-developer.org/wp-admin/page.php?action=edit&post=78

     

    The page ID in the example above is 78. How to exclude it using Widgets is shown in the screen shot below:

    That's the first approach. You can also exclude the search result pages you have created by editing the wp_list_pages function in all of the affected WordPress template files (Go to Appearance -> Editor). These are single.php, index.php, page.php, and possibly header.php (not all templates include this).

    Edit the files, find the wp_list_pages function in the function and then add the ID in the exclude parameter, for example:

    <?php wp_list_pages('title_li=&depth=1&exclude=78'); ?>

    Your third option is to use a WordPress plug-in to exclude a specific page in WordPress, but due to security risks and incompatibility issues, this is not recommended and is considered a last resort.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.
       

    BLOG HELP ARTICLES

    - Blogging to Attract Holiday Shoppers
    - Commit to Your Blog, or Don`t Blog
    - Should You Blog on Google Plus?
    - Fast Blog Post Ideas
    - Organize Your Business Blogging
    - Too Busy to Blog?
    - The Value of a Business Blog
    - WordPress CMS Tips: Removing RSS Feeds
    - Add Google Custom Search to WordPress Blogs
    - Start Blogging with Blogger
    - Bloggers and the Associated Press: the Past ...
    - WordPress Vs. Blogger: Which Should You Choo...
    - Can You Make Money with a Free Blog?
    - A Beginner`s Guide to Self Hosting Your Blog
    - No Blog Stands Alone: Why You Need Affiliates

    Developer Shed Affiliates

     



    © 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap