Navigation überspringen

[Gelöst] Placeholder in LoginForm

This support ticket is created vor 4 Jahren, 8 Monaten. 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.

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)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Lara vor 4 Jahren, 8 Monaten.

Assistiert von: Jamal.

Author
Artikel
#1624731

Tell us what you are trying to do?
I try to insert placeholder in the [wpv-login-form redirect_url="versteckter Link" redirect_url_fail="versteckter 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?
versteckter Link / versteckter 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