How can I integrate Google Search in my template's default search bar?



I have got the code of google custom search bar and I have placed it in sidebar but I also want it to be integrated in my template’s default search bar.I have encircled the area (search bar) with red in image where i want to integrate google custom search code .My blogger Link: (

Please Help Me.Waiting for reply
Image Link :
. (


Dear, i don’t think this can be done because Google Search Engine provide the JavaScript that process whole search box. Yes, you can customize that search box but it is impossible to integrate that to any other Search Box. You can surely replace that whole search box with Google Search Box so that when a visitor click on Search icon, a Google Search Box will display instead of default search box.

-Shivansh Verma


Waiting for reply of Mohammad Mustafa Ahmedzai.


@Shivansh So as i have also put google search bar so when i search in template’s default search box, so a google search result pop-up appears along with a search result in my blog’s page.So how can i disable the search to be shown in my blog’s page.


Can you elaborate what you wanna say? I am unable to understand… :frowning:


@Shivansh When I search through template’s default search bar , google search pop-up appears along with search result displayed at the body of my blog. So i want to disable the search result that is displayed at body of the blog.


But when I clicked on your template’s default search box, nothing happened.


@Shivansh When I search through my template’s default serach box , Search result is displayed at my blog like this : ( and along with it a search pop-up appears too like this: ( So I want to disable the search result to be displyed in my blog body.


You can solve this by adding using following conditional tags:

<b:if cond='data:blog.pageType == &quot;static_page&quot;'>
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>

This will remove the Google Search Engine from Archive pages. Let me know if this worked. :smile:


@Shivansh Where I have to put this code?


before i think /head but it is my thinking wait for his reply


You have to replace Google Search Engine code in your sidebar with this code. Just replace GOOGLE SEARCH ENGINE CODE HERE with your Google Search engine code.


Nafees Originally said :

Wish Website Designing could be as easy as designing a Image, Duh!


Simply go to CSE and select different layout. :smiley:


Please help @Mohammad . Is there any way to integrate google custom search engine into my template’s default search bar???