Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Allows you to embed a Google Custom Search Engine into a theme.

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 CHANGELOG.txt
Octocat-spinner-32 README.txt
Octocat-spinner-32 cf-google-custom-search-embed.php
# CF Google Custom Search Engine

## Description

Replaces WordPress' search with results from a [Google Custom Search Engine](

## Installation

1. Create a [Google Custom Search Engine](
2. Activate this plugin
3. Go to its [settings page](/wp/wp-admin/options-general.php?page=cf-google-custom-search) to enter the Custom Search Engine's UID.
	- Find "Search engine unique ID:" on the CSE's Basic Settings Page
4. Modify the theme's search template to output results.  (see Example below)

## Example

	<h1 class="page-title"><?php printf(__('Search Results for: %s', 'stn'), $search_title); ?></h1>

	if (class_exists('CFGoogleCustomSearchEmbeddedEndpoint')) {
		echo CFGoogleCustomSearchEmbeddedEndpoint::onResultsShortcode();
Something went wrong with that request. Please try again.