Community

Change the values of User Login block inputs

Hi,

How can I change the placeholders (initial values) of Username & Password inputs in the User Login block of my site? I want the value of the inputs to be "username" and "password" until the user types his/her username and password.

I know I should add some code to my theme's template.php, but I don't know what it should be.

Comments

One approach would be to use

One approach would be to use the Compact forms module

A better solution, thank you

A better solution, thank you so much.

take a look at this

Thanks, but where am I

Thanks, but where am I supposed to put that code? I put it in template.php of my theme, and it didn't work!