Skip Navigation

[Resolved] Placeholder in LoginForm

This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 3.75 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by Lara 4 years, 6 months ago.

Assisted by: Jamal.

Author
Posts
#1624731

Tell us what you are trying to do?
I try to insert placeholder in the [wpv-login-form redirect_url="hidden link" redirect_url_fail="hidden link" allow_remember="true" remember_default="true"]

See documentation (https://toolset.com/forums/topic/need-help-positioning-glyphicon-icons-in-login-form/)... The point where I struggle is, that I don't know, what I should wrap around the javascript mentioned in the documentation.

JavaScript from documenation

$('#user_login').attr('placeholder', 'E-Mail');
$('#user_pass').attr('placeholder', 'Passwort');
 
$('<i class="glyphicon fas fa-user"></i>').insertBefore('#user_login');
$('<i class="glyphicon fa-unlock-alt"></i>').insertBefore('#user_pass');

I tried the following ...

jQuery( function( $ ) {
   
$('#user_login').attr('placeholder', 'E-Mail');
$('#user_pass').attr('placeholder', 'Passwort');
 
$('<i class="glyphicon fas fa-user"></i>').insertBefore('#user_login');
$('<i class="glyphicon fa-unlock-alt"></i>').insertBefore('#user_pass');
   
} );

It doesn't work..

Is there any documentation that you are following?
https://toolset.com/forums/topic/need-help-positioning-glyphicon-icons-in-login-form/

Is there a similar example that we can see?
In the documentation

What is the link to your site?
hidden link / hidden link
For both pages..

#1624753

Hello and thank you for contacting the Toolset support.

Your code seems correct to me. You just need to add it to the view or the page where the login is added.

Maybe you can omit the last two lines if you do not want to add an icon before the inputs for login and password:

$('<i class="glyphicon fas fa-user"></i>').insertBefore('#user_login');
$('<i class="glyphicon fa-unlock-alt"></i>').insertBefore('#user_pass');
#1625577

Hi Jamal,
you're right the code is correct. I just made a stupid small mistake...
Thanks, Lara