Forums

www.myURL/search - page does not exist?? (1 post)

  1. athousandcoupons
    Member
    Posted 3 years ago #

    Hi all,

    I'm loving wordpress so far but just bumped into a problem when adding Google Custom Search to my site.

    I have the search.php file in my theme folder and I have updated it with the google code...

    <?php get_header(); ?>
    		<?php get_sidebar(); ?>
    <div id="cse-search-results"></div>
    <script type="text/javascript">
      var googleSearchIframeName = "cse-search-results";
      var googleSearchFormName = "cse-search-box";
      var googleSearchFrameWidth = 500;
      var googleSearchDomain = "www.google.com";
      var googleSearchPath = "/cse";
    </script>
    <script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
    		<div><?php include ("sidebar2.php"); ?></div>
    		<?php get_footer(); ?>
    		<?php wp_footer(); ?>
    	</div>
    </body>
    </html>

    I have set up my search form to use the search form desination at my site but hitting that URL gives me a 'page not found' error.

    http://www.athousandcoupons.com/search

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by athousandcoupons
  • This topic is not resolved
  • WordPress version: 2.7