Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Sidebars & Widgets »

[SOLVED] Displaying a Google Search Engine?


 
Prev Previous Post   Next Post Next
  #1  
Old May 1, 2012, 06:26 PM
GRF
 
76 posts · Mar 2011
[SOLVED] Displaying a Google Search Engine?

I created a Google Search Engine by using a 2-Page Look and Feel. Meaning I have the search box form code and the search results code. But the Google Search box form code doesn't work. But the regular code on Searchform.php does work, but there is no Watermark displayed in the search input box which I think Google requires. Here is the code. Is there anyway to show the Watermark in the Google search input box? Also, the right and left sidebar widgets don't show when the search results are shown except for the search bar and Recent searches.

Code:
Searchform.php

<form method="get" class="searchform" action="<?php echo esc_url( home_url() ); ?>/">'
<table class="searchform" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="searchfield">
<input type="text" class="text inputblur" value="<?php esc_attr( the_search_query() ); ?>" name="s" />
</td>
<td class="searchbutton">
<input name="submit" value="Search" type="image" src="<?php echo get_template_directory_uri(); ?>/images/magnifier2-gray.gif" style="display: block; border:none; padding: 0 0 0 5px; margin: 0;" />
</td>
</tr></table>
</form>
Code:
Search.php

<?php 
global $options; 
foreach ($options as $value) { 
	if (get_option( $value['id'] ) === FALSE) { 
		$$value['id'] = $value['std']; 
	} else { 
		$$value['id'] = get_option( $value['id'] ); 
	} 
}
if ( is_page() ) { global $wp_query; $current_page_id = $wp_query->get_queried_object_id(); }
?>
<?php get_header(); ?>

<p align="center">Your search for '<strong><font color="#FF0000"><? echo $_GET["s"] ?></font></strong>' returned the following results:</p>

<!-- GOOGLE Search results Code Generated by Google is Here -->
			
<?php get_footer(); ?>
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Replace search bar with google search bar frugalmommytoday Header configuration & styling 14 May 19, 2011 11:23 AM
Search engine visibility pilsen1 Header configuration & styling 1 Oct 30, 2009 09:49 AM
Articles not in search engine Google AmpLiF1eR Excerpts, Read more, Pagination 2 Oct 16, 2009 04:57 PM
Linking pages for Search Engine Optimisation Leoni Atahualpa 3 Wordpress theme 4 Jun 1, 2009 09:59 PM


All times are GMT -6. The time now is 01:35 PM.


Powered by vBulletin® Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.