Your address will show here +12 34 56 78

Home Forums WP ESTATE – Real Estate WordPress Theme FORUM Remove placeholder text on click Reply To: Remove placeholder text on click

#103643

glauco
Participant

Update:

I was able to achieve this with pure CSS by adding this to style.css:

input:focus::-webkit-input-placeholder { color:transparent; }
input:focus:-moz-placeholder { color:transparent; } /* FF 4-18 */
input:focus::-moz-placeholder { color:transparent; } /* FF 19+ */
input:focus:-ms-input-placeholder { color:transparent; } /* IE 10+ */

It won’t work on older browsers but it works fine on the ones I have tested.

I still think an onfocus event added to the template would be a better solution, maybe something for the next release?

  • This reply was modified 2 years, 7 months ago by  glauco.