Skip Navigation

[Resuelto] Customize login page

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
Customize login page

Solution:
The output of shortcode [wpv-login-form] is just a "copy" of the WordPress Login Form. It does not add any custom HTML structure, only outputs what the native WordPress function does.

To customize the Labels, errors, redirect etc..etc.. you will need a Custom Code that produces a Customized Login Form, on your own.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/customize-login-page/#post-1076097

Relevant Documentation:
=> https://codex.wordpress.org/Function_Reference/wp_login_form
=> https://codex.wordpress.org/Customizing_the_Login_Form

This support ticket is created hace 6 años, 4 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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: Asia/Kolkata (GMT+05:30)

Este tema contiene 8 respuestas, tiene 2 mensajes.

Última actualización por Akhil hace 6 años, 3 meses.

Asistido por: Minesh.

Autor
Mensajes
#1076094

Hi Minesh,
i am using the login shortcode.
i would like to customize the login page so it looks professional.

i need to add

1. notification upon successfull login , logout , registration,
2. email notifications.
3. error messages if password field empty
4. username field not filled with condition:
a. already have such username ,
b. other conditions.

sorry if its long request hope you can guide me , ill share some of my code that found on other site as well to confirm if its usable.

cheers

#1076097

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - The output of shortcode [wpv-login-form] is just a "copy" of the WordPress Login Form. It does not add any custom HTML structure, only outputs what the native WordPress function does.

To customize the Labels, errors, redirect etc..etc.. you will need a Custom Code that produces a Customized Login Form, on your own.

More info:
=> https://codex.wordpress.org/Function_Reference/wp_login_form
=> https://codex.wordpress.org/Customizing_the_Login_Form

This login form has the filters: login_form_top, login_form_middle, and login_form_bottom.

Following links may also help you as well:
=> enlace oculto
=> enlace oculto
=> enlace oculto

#1076115

Thank You Minesh , that link was helpful.

i was trying to add some security to login page and found this
enlace oculto

However i think the fn is no longer valid since wp is now accepting both username OR email , could you help me find the issue there ? ive asked the blogger too.

i think its here : $user = get_user_by("user_email", $email) ;

function user_captcha_authenticate($user,$username,$email,$password) {
   $time = date('njhi');
   $submission = $_POST['user_catpcha'];
   $user = get_user_by('login', $username);
   //need to add this ??
   $user = get_user_by("user_email", $email) ;
      if (!$user||empty($submission)||$submission != $time) {
         remove_action('authenticate','wp_authenticate_username_password',20);
         return new WP_Error('die','<strong>ERROR</strong>: Wrong Captcha!'); }
   return; }
add_filter('authenticate','user_captcha_authenticate',10,3);	
#1076157

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Well - I would like to help you but I've to work within predefined boundary of our support. This is pure custom programming which is beyond the scope of our support policy. If you need help for such custom code, please feel free to contact our certified partners.
=> https://toolset.com/contractors/

Please kindly open a new ticket with your each new question. This will help other users searching on the forum. Thank you for understanding.

#1076598

Hi Minesh , i think you got me wrong , the codes are working in wp-admin pages [core wp] but not in the toolset short-coded pages.
searching further i found out that indeed toolset has its own filters for to the login form .

what i am asking is how to adjust this code so that it works on the toolset login shortcodes, i guess ill have to open separate ticket for each .

example is this :
https://toolset.com/forums/topic/shortcode-wpv-login-form-not-using-standard-wp_login_failed-event/
https://toolset.com/forums/topic/login-form-error-messages-login_errors-filter-not-used/

#1077322

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Thanks for sharing those URLs but when you say its not in the toolset short-coded pages. what you mean by toolset shortcoded pages?

You can find all available attributes with [wpv-login-form] shortcode with following link:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form

#1077349

Hi, toolset shortcoded pages i mean its the page with shortcode [wpv-login-form] .

#1077352

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Ok then its clear.

What ever attributes you find with the Doc for [wpv-login-form] are the available things:
=> https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-login-form

For any additional hook or attribute you need to take help from the standard WordPress hook or filters that belongs the login form as described here with my previous reply:
=> https://toolset.com/forums/topic/customize-login-page/#post-1076097

However, still I'm taking your request to add Toolset hooks and filters for login form shortcode and report it to concern department and add your voice to it. Please note that there is no ETA on it.

#1081034

ok. let me know how it goes. thanks.