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

nevets’s picture

One approach would be to use the Compact forms module

payamspot’s picture

A better solution, thank you so much.

payamspot’s picture

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