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.

Code:
<xf:comment>Google Custom Serach Form starts...

Read more about this resource...
 
Last edited:
All that said. :cool:

This corrected the problem.

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

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

input.gsc-input,
.gsc-input-box,
.gsc-input-box-hover,
.gsc-input-box-focus,
.gsc-search-button, input.gsc-search-button-v2 {
    box-sizing  : content-box;
    line-height : normal;
    margin-top  : 0px;
}
 
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?
 
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.
 
Hi, thanks for the resource. Could you provide instructions to use Google Search for all your searches, not just Advanced Search?
 
Back
Top Bottom