Resource icon

Add Google Custom Search form to your Advance Search

Mr Lucky

Well-known member
Mr Lucky submitted a new resource:

Google Custom Search form to your Advance Search - How to add a Google custom search

This will add a Google custom search form to your xenforo Advanced Search and will do a Google search of your site/s.

You will of course first need to sign up and have registered your site/s with Google CSE

Once you have configured that you will be able to get the code you can add to the form

1. At the end of the template search_form add the following. Text in capitals is to be replaced.

<xf:comment>Google Custom Serach Form starts...
Read more about this resource...
Last edited:


Active member
All that said. :cool:

This corrected the problem.

.gsc-control-cse .gsc-table-result {
    font-family : inherit;

.gsc-control-cse .gsc-input-box {
    height : inherit;

.gsc-search-button, input.gsc-search-button-v2 {
    box-sizing  : content-box;
    line-height : normal;
    margin-top  : 0px;

Mr Lucky

Well-known member
Glad you got that sorted, was it maybe a conflict with a style you are using as the Google code should normally work without that?


Well-known member
I'm glad you found a solution. Yes, it depends what style for GCS you set in options. I needed to add the code I've sent you before.