hi friends i need your help
i wanted to setup the google search box in my website, i m using wordpress. how can i opened the results with in same page…
i put the code on side bar, and then it say the , place next code, where you want to display the results. how i can do that??
see this screen shot, i wanted to sustain the my sidebar along with the results page, but it moved down and also show the post content of the front page
If you want the search results to replace the content instead of pushing it down, try placing the second code snippet that you placed after <div id=“content”> on a blank Page instead of in your template.
The Iframe option that you are using allows you to specify the URL the results will display on.
Create a new Page in Wordpress and call it ‘Search Results’ or something.
add the Search results code into the new page.
In your Google custom search settings…go to the Get Code link where you got the other snippets of code…and in the Specify search results details section on top, type in the URL of the new page.
When someone does a search, that should give you just the search results on the left instead of results and content.
Step 1: In your Wordpress Dashboard, go to the Pages tab and click Add New…just like how you added the About Us and Contact pages to your site.
Step 2: In your new Page, paste the code for the results box. Since it’s code you are pasting in, make sure you are in the HTML tab (circled in red below) and not the Visual tab. Title/Name the page, then Publish it.
Step 3: In your Google custom search control panel, go to the section where you got the two separate code snippets. In the top section (highlighted in yellow below), type in the URL address of the new page for the search results…for example: [I]http://www.www.smashinghub.com/find/[/I]
Notice that the URL is added to the search box code (in red box above) as you type it.
You will have to add or change that value in the search box code on your site (red text in the search box code below)…
If that whole sidebar is widget-enabled, just go the the Appearance tab in your Wordpress Dashboard…to the Widgets link. In the Available Widgets area, find and drag the Text widget box (circled in red) to the far right…to the Sidebar box…
You will have to look to find the Connect To Us widget in the Sidebar box and drag the Text widget under it. Once placed, the widget will open up a text box so you can paste your code in and save.
yes, you can use a list of your categories at the top. you just have to place the right tag (code) in your template where you want it.
There’s the Wordpress documentation page for the template tag to create a category list. Toward the bottom of the page, there are several examples of the code you would add to your template, depending on what you want.