Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.3k views
in Q2A Core by
Can anyone please tell me steps to replace current top search box with Google custom search box. thank  you.
Q2A version: 1.5.4
by
The search feature in Q2A is very good! Why would you want to change that?
by
Alphabetical language which separates words by space is satisfactory.  However, in order that Japanese or Korean don't separate words by space, the dictionary of Q2A is not made correctly. Therefore, it is meaningful to use Google custom search depending on language.

2 Answers

0 votes
by
If you want to add custom google searchbox into your theme than follwo this tutorial.. and than using advance theme place that code or function where you want to display in the theme.

http://fcontheweb.com/articles/google/
0 votes
by

 

Add this in your advance theme and replace red color codes with your own codes
/*
function search()
{
$search=$this->content['search'];
                        $this->output(
'<form align="right" action="http://www.YourWebsite.com/gsearch" id="cse-search-box">'
.'  <div>'
.'    <input type="hidden" name="cx" value="Your Code" />'
.'    <input type="hidden" name="cof" value="FORID:10" />'
.'    <input type="hidden" name="ie" value="ISO-8859-1" />'
.'    <input type="text" name="q" size="10" />'
.'    <input type="submit" name="sa" value="Search" />'
.'  </div>'
.'</form>'
);
}
*/
...