How to add Google Custom Search

This tutorial is over a year old and may not apply to your version of Concrete CMS.
Aug 12, 2016

This tutorial will help you create a customized search in just a few minutes.

Google Custom Search enables you to create a search engine for your website, your blog, or a collection of websites. You can configure your engine to search both web pages and images. You can fine-tune the ranking, add your own promotions and customize the look and feel of the search results.

To get started, you need to create an instance of a Custom Search Engine. Create an account here: https://cse.google.com/manage/all

In the Sites to search section, add the pages you want to include in your search engine. You can include any sites you want, not just the sites you own. You can include whole site URLs or individual pages URLs. You can also use URL patterns.

The name of your search engine will be automatically generated based on the URLs you select. You can change this name at any time.

Select the language of your search engine. This defines the language of the buttons and other design elements of your search engine, but doesn't affect the actual search results.

Click Create.

click Get code. Copy the code and paste it into your page's HTML source code where you want the Custom Search element to appear

Implementing search box

Once you've created your custom search engine, you can add the Custom Search Element to your site. To do this, you'll need to copy some code and paste it into your site's HTML where you want your search engine to appear.

Recent Tutorials
Setting addon/theme version compatibility in the marketplace
Jan 9, 2024

For developers worn out with setting the latest addon or theme version manually across too many core versions, here is a JavaScript bookmarklet to do it for you.

How to get the locale of a page
Jan 8, 2024
By wtfdesign.

Now, why don't we just have a getLocale() method on Page objects beats me, but here's how you work around it

Using a Redis Server
Jun 16, 2023
By mlocati.

How to configure Concrete to use one or more Redis servers to persist the cache.

Using the Concrete Migration Tool Addon
Apr 27, 2023

How to use the Concrete CMS Migration Tool

How To Add Page Last Updated To Your Concrete CMS Pages
Mar 7, 2023

Concrete CMS has a page attribute you can add to a global area called "Page Date Modified." Here's how to add it

How To Exclude Subpages from Navigation
Dec 24, 2022

How to exclude subpages from navigation - useful for a news or blog link in your main navigation where you don't want all the subpages to appear in a drop down menu.

Improvements?

Let us know by posting here.