Can anyone please help me out. I am trying to add a google search to my wordpress site, but im having difficulties on the results bit.
The results will show on a different page,(iframe) so i put http://www.mysite.com/search as the link for the landing results page. And then type in googles code on search.php file. But when i try and test it on the site, it goes to the 404 page.
Ive done this before on a static site with no worries but im struggling with Wordpress.
Create a new page from within wordpress and paste the landing page code in the html editor there. You'll obviously have to give the custom search setup the URL of the page you've just created.
You can copy page.php and create a new template called search-results.php, remove the sidebar from it, and use that template for the new page you've created.
Can anyone please help me out. I am trying to add a google search to my wordpress site, but im having difficulties on the results bit.
The results will show on a different page,(iframe) so i put http://www.mysite.com/search as the link for the landing results page. And then type in googles code on search.php file. But when i try and test it on the site, it goes to the 404 page.
Ive done this before on a static site with no worries but im struggling with Wordpress.
Because on the result page i dont want to include the side bar
You can copy page.php and create a new template called search-results.php, remove the sidebar from it, and use that template for the new page you've created.
Cheers for the help.