![]() |
|
||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello,
I'm having huge issues with Google Custom Search: Search Code added to page (www.networkthroughput.com/google-bar) PHP Code:
PHP Code:
|
|
#2
|
||||
|
||||
|
This level of coding is beyond the scope of the support we are able to provide in the forum, as it requires custom code to be written and tested, but I will leave this thread open in case a community member is able/willing to assist you.
__________________
Nick "Fred and/or George Weasley" Croft Designs by Nick the Geek @Nick_theGeek on Twitter Make web design easier, get FireBug for FireFox Want to learn more about Genesis? Check out my Genesis Explained Series |
|
#3
|
|||
|
|||
|
Okay,
Thank you |
|
#4
|
|||
|
|||
|
I have been testing this on my own site and I have the same problems. While I was copying en pasting code I did managed to get it to work without opening a HTML editor. So it is possible without advanced customization. Problem is I deleted the code, so it isn't working anymore.
Strange thing is, code provides two types of codes. One pair with one div and a script for the search widget. And another one that you implement on the search result page like www.domain.com/search. Stragen thing is that it is not working |
|
#5
|
|||
|
|||
|
Yea, did you end up finding a solution?
|
|
#6
|
||||
|
||||
|
Hello all,
I was reading through the forum over the last couple of days... and I saw this thread. Just wanted to let you guys know that I had just recently set this up and it is actually rather easy! Here is the link to the post that I used for instructions: How-to-add-Google-Custom-Search P.S. If this helps you, please pass it along. Cheers, Matt Last edited by mattvaden; 10-17-2012 at 08:14 PM. Reason: Mis-spelling |
|
#7
|
||||
|
||||
|
In Step 1 of the tutorial I shared, you will notice a screenshot that shows where you can choose between "Open Results on Google in the same window" or "Open results within my own site". I chose the later.
#1. I went to my site, created a WordPress "Page" titled "Search Results (slug is search-results) #2. I followed the instructions in the tutorial I linked to earlier. #3. I inserted the following Google code into a "Text Widget" in my sidebar: Code:
<form action="http://www.mattsaffiliatejourney.com/search-results/" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-<code removed here>" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="25" />
<input type="submit" name="sa" value="Go" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
Code:
<strong>Note:</strong> To see the search results from my site, please read below the Google ads! Cheers!<br /> <div id="cse-search-results"></div> <script type="text/javascript"> var googleSearchIframeName = "cse-search-results"; var googleSearchFormName = "cse-search-box"; var googleSearchFrameWidth = 800; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script> #5. Also make sure you choose the "iframe" option on Google. This will make the "two page search results" option work properly. Note: Google says that the iframe option has been deprecated, but it still works for now. I was unable to get the new "V1" or "V2" code for the "two page results" settings to work. Just stick to the tutorial (exactly step for step) for now, and if something changes or the search box with an iframe option stops working, I will come back here and update this thread with any changes that may need to be made. You can see the Google Custom Search box in action here: Matt's Affiliate Journey
__________________
Regards, Matt Vaden Last edited by mattvaden; 10-17-2012 at 08:36 PM. Reason: Added Step #5. |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Lijit vs. WP search vs. Google Custom search | Jeff Hester | General Discussion | 1 | 05-14-2010 10:38 AM |
© Copyright 2012 Copyblogger Media LLC · StudioPress™ is a trademark of Copyblogger Media LLC
Privacy Policy | Refund Policy | Terms of Service | Affiliate Program | Contact Us