← Back
Editing: login-form.php
<?php function custom_divi_login_form() { remove_action('et_after_login_form', 'et_pb_login_form_bottom_output'); add_action('et_after_login_form', 'custom_login_form_output'); } add_action('wp', 'custom_divi_login_form'); function custom_login_form_output() { if (is_user_logged_in()) { return; } ?> <div class="custom-login-wrapper"> <button type="submit" class="et_pb_newsletter_button et_pb_button"><?php esc_html_e('Log In', 'Divi'); ?></button> <div class="et_pb_forgot_password"> <a href="<?php echo wp_lostpassword_url(); ?>"><?php esc_html_e('Forgot your password?', 'Divi'); ?></a> </div> </div> <?php } function change_lost_your_password($text) { if ($text == 'Forgot your password?') { $text = 'Glemt adgangskode?'; } return $text; } add_filter('gettext', 'change_lost_your_password');
Save File
Cancel