Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   google custome search code (http://forum.bytesforall.com/showthread.php?t=3505)

saifullahraza Sep 17, 2009 12:22 PM

google custome search code
 
hi all

i need to know where to put the google search code in search.php using two codes with iframe

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

please answer me

thanks

mlamkin Sep 17, 2009 01:11 PM

Just my opinion but you may want to paste that code into a new Text Widget instead of editing the search.php file.

Then you have choices of where to place the Google Custom Search and it can be used in any theme without having to edit each theme's search.php file.


All times are GMT -6. The time now is 10:53 AM.

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