Posted By

gera3d on 12/09/10


Tagged

form 7 contact


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

bcmoney


Contact Form 7 onFocus fix


 / Published in: PHP
 

URL: http://www.ultimatelimoservice.com/reservations

This was a fix for the form that allowed me to automatically replace the text when I focused on area.

Find the file text.php inside modules. Replace line 89 with this code.

  1. $html = '<input type="text" name="' . $name . '" value="' . esc_attr( $value ) . '"' . $atts . 'onfocus="if(this.value==\'';
  2. $html = $html . esc_attr( $value ) . '\') this.value=\'\';" onblur="if(this.value==\'\') this.value=\'' . esc_attr( $value ) . '\';" </textarea>';

Report this snippet  

You need to login to post a comment.