Hello,
thats what i want to do:
I made a results.php file and uploaded it to themes dir
Thats what i wrote in a file
<?php get_header(); ?>
<div id="content">
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 795;
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><!--/entry -->
</div><!--/post -->
</div><!--/content -->
<div id="footer"><a href="http://www.ndesign-studio.com/resources/wp-themes/">WP Theme</a> & <a href="http://www.ndesign-studio.com/stock-icons/">Icons</a> by <a href="http://www.ndesign-studio.com">N.Design Studio</a></div>
</div><!--/left-col -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Inserted google search results code is necessary to display search results, but when i test it its not working. How to make or what to edit (CSS?) to make my file results.php available on my blog. Do i need to add something in to css file?
Template_Hierarchy is a good place to start.
And if it's a Page as in Pages, see the Page templates section.
First of all im not good at this. And i need to make a page for google results but not search page.
If you are not good at it - don't do it.
And if it is a google thing (as you stated) ask google.
I will try...
One thing: Google will never say how to make or edit or smth that related to coding.
The link you gave me was very useful i made this page http://www.digit-8.com/search-results
Whats in googleresultspage.php (http://www.digit-8.com/search-results)?
<?php
/*
Template Name: google search results
*/
?>
<?php get_header(); ?>
<h1><?php bloginfo('Search results'); ?></h1>
<div id="content">
<p>To search my website, please use the form below.</p>
<form action="http://www.digit-8.com" id="cse-search-box">
<div>
<input type="hidden" name="cx" value="partner-pub-0000000000000000000000000000" />
<input type="hidden" name="cof" value="FORID:10" />
<input type="hidden" name="ie" value="ISO-8859-1" />
<input type="text" name="q" size="19" />
<input type="submit" name="sa" value="Search" />
</div>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
<strong><div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 795;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script></strong>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</div><!--/content -->
<div id="footer"><a href="http://www.ndesign-studio.com/resources/wp-themes/">WP Theme</a> & <a href="http://www.ndesign-studio.com/stock-icons/">Icons</a> by <a href="http://www.ndesign-studio.com">N.Design Studio</a></div>
</div><!--/left-col -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Code in bold is what i need to get when i make a search...Its Search Results Code from google. When i make a search i get no results on the same page.. Thats my problem. Any ideas? Btw, looks like i made everything stepd by step to make that page on my blog.
Look foward...