How to create a Google Custom Search page

Posted in: Newspaper
Post count: 101

Hello TagDiv,
First of all thanks for the Wonderful theme. How Can I create a google custom search page that supports google Adsense for search. Also how to replace the WordPress default search engine with Google Custom Search engine. For example how to implement google custom search to Sidebar search widget.

Thanks & Regards
Pradeep Augustine

Post count: 9544

You can simply paste the Google CSE code for a search box into a text widget in sidebar just like any HTML.

Post count: 101

Thanks for the reply Chris S.
I had tried it but It looks odd in my blog. I just wanna give it a good look like it is a part of my blog. Also how to replace the search in the menu with Google Custom Search.

Thanks

Post count: 7909

Hi,

You can replace the theme default search in header-menu.php file(and implement you code) – http://screencast.com/t/Zj4Xuv7O You may need additional css customization, so I suggest to hire someone to do this for you if you don’t have basic css/html experience as we cannot provide custom work at this time, sorry!

Thanks!

Post count: 101

Why cant you make a post to replace the default search with Google’s Custom search. Most of the people need this. Hope you will give a better solution.

Post count: 101

Found a better solution. Thanks for the helps.

Post count: 48

What solution?

Thanks

Post count: 101

Hello friends. I have created a tutorial to integrate Google Custom Search Engine to Newspaper theme. Check it here – http://www.getcooltricks.com/wordpress/google-cse-integration-to-newspaper-wordpress-theme/

You can suggest, if any modifications are needed in that.

Post count: 48

Thanks Pradeep, It looks great!

I’ll try in my website to feed back.

Thanks again.

Post count: 48

No… I tried but no results…

Post count: 48

I have look your code and its different than tutorial…

Post count: 48

I found the issue…

Inside your tutorial, the last line has an error: The quote.

<gcse:search></gcse:search>

Now works… Maybe some css styling?

Post count: 101

Got it. I had updated it in the tutorial.
I personally found that the default template of the Google Custom search has some issues. use some other styling. That may work better.
Thanks.

Post count: 101

If you are using any Caching plugin try to delete the cache and try.

Post count: 48

Thanks Pradeep!

Post count: 101

You are most welcome @Charli. Does it worked properly? Let me have a look at your website. Thank you for finding the mistake in that code.

Post count: 48

Yes, it works fine…

http://www.cambiatufisico.com

I’m trying to delete that unsightly borders…

Post count: 101

paste this CSS in your Custom CSS in the theme panel. body.postid-<strong>190</strong> .td-page-content table, .td-page-content td, .td-page-content tr {border: none!important; margin: auto;} . Replace the number in bold with the search page ID. Clear your cache and try. Let me know if it works.

Post count: 101

body.page-id-190 .td-page-content table, .td-page-content td, .td-page-content tr {border: none!important; margin: auto;} Use this code. It works fine. I had checked it in my test site. Change the number in bold with the search page ID.

Post count: 48

Yes! That worked! Thanks again Pradeep!

Post count: 101

You are most welcome Charlie. It seems that you are using smart sidebar in your site. According to Google Adsense policy you are not allowed to use Sticky ads. Consider that in mind and use the ad in the sidebar.

Post count: 224

thanks for this, but seems not to work well for me

Post count: 224

I have the following problems

1. On my page the sidebar wont display

2. when i change the menu search code then a background appears on my ad ad the header

Post count: 224

seems to be working now i guess

Post count: 101

Hello iamkingslefy, It worked fine in my sites and also on few other people site. Try to delete the cache if you are using a caching plugin and try.

Viewing 25 posts - 1 through 25 (of 38 total)
The forum ‘Newspaper’ is closed to new topics and replies.