Support » Fixing WordPress » Google search in sidebar broken
Google search in sidebar broken
-
I apologize that I’ve lost the skills I needed to create this functionality in the first place, but here goes. Now, my site consists mostly of static html, with files in my root folder, but the home page is in WordPress, with files in a “blog” folder and a custom theme. The sidebar contains a Google search box that no longer returns results. I don’t know when the problem arose, possibly just yesterday when I upgraded to https.
The code in sidebar.php for this reads as follows:
<li id="search"> <!-- Google CSE Search Box Begins --> <form action="https://www.haberarts.com/ggsearch.htm" id="searchbox_007824554724251649928:hl-xxbn-w6q"> <input type="hidden" name="cx" value="007824554724251649928:hl-xxbn-w6q" /> <input type="hidden" name="cof" value="FORID:11" /> <input type="text" name="q" size="15" /> <input type="submit" name="sa" value="Search" /> </form> <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_007824554724251649928%3Ahl-xxbn-w6q&lang=en"></script> <!-- Google CSE Search Box Ends --> </li>
A search does return the custom text and style specified in ggsearch.htm, but no search results.The relevant section in ggsearch.htm is as follows:
<div id="results_007824554724251649928:hl-xxbn-w6q"></div> <script type="text/javascript"> var googleSearchIframeName = "results_007824554724251649928:hl-xxbn-w6q"; var googleSearchFormName = "searchbox_007824554724251649928:hl-xxbn-w6q"; var googleSearchFrameWidth = 600; var googleSearchFrameborder = 0; var googleSearchDomain = "www.google.com"; var googleSearchPath = "/cse"; </script> <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
That’s all I know, and thanks!
-
This topic was modified 1 week ago by
Steven Stern (sterndata).
The page I need help with: [log in to see the link]
-
This topic was modified 1 week ago by
-
See here :
https://abilitiescentreottawa.org/index-search.html
Search for Teresita Fernandez
and returns 4 successful results :
https://abilitiescentreottawa.org/ggsearch.htm?cx=007824554724251649928%3Ahl-xxbn-w6q&cof=FORID%3A11&q=Teresita+Fernandez&sa=SearchIt’s bc you are calling the result set over http:// instead of https:// – see here :
https://ibb.co/mSXjW0yChange your call to google from this :
http://www.google.com
to this :
https://www.google.comNow hurry up, and do it before this reply gets moderated – bc this has NOTHING to do with WordPress!
- You must be logged in to reply to this topic.