Ver Mensaje Individual
  #15 (permalink)  
Antiguo 01/10/2012, 11:37
i_gar
 
Fecha de Ingreso: septiembre-2012
Mensajes: 26
Antigüedad: 11 años, 7 meses
Puntos: 0
Respuesta: Error de código en Wordpress

Código PHP:
Ver original
  1. <?php $search_text = empty($_GET['s']) ? __('[B]Search[/B]', 'themater') : get_search_query(); ?>
  2. <div id="search" title="<?php _e('[B]Escribe y pulsa enter[/B]', 'themater'); ?>">
  3.     <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>">
  4.         <input type="text" value="<?php echo $search_text; ?>"
  5.             name="s" id="s"  onblur="if (this.value == '')  {this.value = '<?php echo $search_text; ?>';}"  
  6.             onfocus="if (this.value == '<?php echo $search_text; ?>') {this.value = '';}"
  7.         />
  8.     </form>
  9. </div><!-- #search -->

Lo conseguí. Muchas gracias. Fue cambiando lo resaltado en negrita.
Muchas gracias.
Un saludo!

Última edición por i_gar; 01/10/2012 a las 13:00