-
Author
-
August 3, 2018 at 20:20 #205358randrcomputersParticipant
If i use Kleo login i cannot add logo to the sign-in “pop-up” how can this be done?
Also how can i add security question to the registration page WITH a correct answer without using plugin? Wanggaurd did this PERFECTLY but dont feel its safe to still use that plugin since its no longer developed
August 4, 2018 at 16:31 #205393Kieran_SQModeratorHi,
To add your login to KLEO login / register modal you will need to using the KLEO Child theme. Copy the below file from the parent to the child theme, if the folder structure doesn’t yet exist please create it.
From
/themes/kleo/page-parts/general-popups.php
To
/themes/kleo-child/page-parts/general-popups.php
Once you have copied this across you can then edit the general-popups.php file from the child theme.
Add a new line between the two lines (8-9) shown below and add your custom HTML
COPY CODE<div class="kleo-pop-title-wrap main-color"> <h3 class="kleo-pop-title"><?php esc_html_e( "Log in with your credentials", "kleo_framework" ); ?></h3>
Example
COPY CODE<div class="kleo-pop-title-wrap main-color"> <img src="path/to/image.png" alt="Acme Inc." height="42" width="142"> <h3 class="kleo-pop-title"><?php esc_html_e( "Log in with your credentials", "kleo_framework" ); ?></h3>
To do this without a plugin will require a large amount of custom code and to be placed in the KLEO Child theme’s functions.php file. Such an amount of specific code would be best hosted in it’s own plugin therefore I would advise finding a simple BuddyPress security question plugin or implement a invisible recaptcha plugin from the WordPress.org plugin repository.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 20:07 #205414randrcomputersParticipantYour code works perfectly for the POPUP but now when i choose the “kleo” login it does work but i get a second full screen login after i sign in with the kleo login! what would be causing that?
August 4, 2018 at 20:10 #205415Kieran_SQModeratorHi,
Please post the contents of your edited file here. It’s important to use the code tags before and after the code, you can find them above the reply text area. If you added it exactly as above, from the ticket – and not the email, it’s not possible to change how login works so something else may have changed.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 20:27 #205422randrcomputersParticipant<!– Modal Login form –>
<?php do_action( ‘kleo_before_login_form’ ); ?>
<h3 class=”kleo-pop-title”><?php esc_html_e( “Log in with your credentials”, “kleo_framework” ); ?></h3><?php if ( get_option( ‘users_can_register’ ) ) : ?>
<p>
<?php esc_html_e( “or”, ‘kleo_framework’ ); ?>
<a href=”<?php if ( function_exists( ‘bp_is_active’ ) ) {
bp_signup_page();
} else {
echo wp_registration_url();
} ?>” class=”new-account”>
<?php esc_html_e( “Create an account”, “kleo_framework” ); ?></p>
<?php endif; ?>
<?php
$login_url = site_url( ‘wp-login.php’, ‘login_post’ );
$redirect = apply_filters( ‘kleo_modal_login_redirect’, ” );if ( ! empty( $redirect ) ) {
$login_url = add_query_arg( ‘redirect_to’, urlencode( $redirect ), $login_url );
}?>
<form action=”<?php echo esc_url( $login_url ); ?>” id=”login_form” name=”login_form” method=”post”
class=”kleo-form-signin”>
<?php wp_nonce_field( ‘kleo-ajax-login-nonce’, ‘security’ ); ?>
<input type=”text” id=”username” required name=”log” class=”form-control” value=””
placeholder=”<?php esc_html_e( “Username”, ‘kleo_framework’ ); ?>”>
<input type=”password” id=”password” required spellcheck=”false” autocomplete=”off” value=”” name=”pwd” class=”form-control”
placeholder=”<?php esc_html_e( “Password”, ‘kleo_framework’ ); ?>”><button class=”btn btn-lg btn-default btn-block”
type=”submit”><?php esc_html_e( “Sign in”, “kleo_framework” ); ?></button>
<label class=”checkbox pull-left”>
<input id=”rememberme” name=”rememberme” type=”checkbox”
value=”forever”> <?php esc_html_e( “Remember me”, “kleo_framework” ); ?>
</label>
<a href=”#kleo-lostpass-modal”
class=”kleo-show-lostpass kleo-other-action pull-right”><?php esc_html_e( ‘Lost your password?’ ); ?>
<span class=”clearfix”></span><?php
/* Required by antispam plugins like Google Re-captcha, Invisible Re-Captcha */
/* Prevent kleo_fb_button to be displayed twice on login pop-up. */
remove_action( ‘login_form’, ‘kleo_fb_button’, 10 );
do_action(‘login_form’);
add_action( ‘login_form’, ‘kleo_fb_button’, 10 );
?>
<?php do_action( ‘kleo_after_login_form’ ); ?></form>
<!– END Modal Login form –>
<!– Modal Lost Password form –>
<h3 class=”kleo-pop-title”><?php esc_html_e( “Forgot your details?”, “kleo_framework” ); ?></h3><?php do_action( ‘kleo_before_lostpass_form’ ); ?>
<form id=”forgot_form” name=”forgot_form” action=”” method=”post” class=”kleo-form-signin”>
<?php wp_nonce_field( ‘kleo-ajax-login-nonce’, ‘security-pass’ ); ?>
<input type=”text” id=”forgot-email” required name=”user_login” class=”form-control”
placeholder=”<?php esc_html_e( “Username or Email”, ‘kleo_framework’ ); ?>”><button class=”btn btn-lg btn-default btn-block”
type=”submit”><?php esc_html_e( “Reset Password”, “kleo_framework” ); ?></button>
<a href=”#kleo-login-modal”
class=”kleo-show-login kleo-other-action pull-right”><?php esc_html_e( ‘I remember my details’, “kleo_framework” ); ?>
<span class=”clearfix”></span>
</form><!– END Modal Lost Password form –>
<?php if ( get_option( ‘users_can_register’ ) ) : ?>
<!– Modal Register form –><?php do_action( ‘kleo_before_register_form_modal’ ); ?>
<h3 class=”kleo-pop-title”><?php esc_html_e( “Create Account”, “kleo_framework” ); ?></h3><form id=”register_form” class=”kleo-form-register”
action=”<?php if ( function_exists( ‘bp_is_active’ ) ) {
bp_signup_page();
} else {
echo wp_registration_url();
} ?>” name=”signup_form” method=”post”><?php if ( function_exists( ‘bp_is_active’ ) ) { ?><input type=”text” id=”reg-username” name=”signup_username” class=”form-control”
required placeholder=”<?php _e( “Username”, ‘kleo_framework’ ); ?>”><input type=”text” id=”fullname” name=”field_1″ class=”form-control” required
placeholder=”<?php _e( “Your full name”, ‘kleo_framework’ ); ?>”><input type=”text” id=”reg-email” name=”signup_email” class=”form-control” required
placeholder=”<?php _e( “Your email”, ‘kleo_framework’ ); ?>”><input type=”password” id=”reg-password” name=”signup_password” class=”form-control”
required placeholder=”<?php _e( “Desired password”, ‘kleo_framework’ ); ?>”><input type=”password” id=”confirm_password” name=”signup_password_confirm”
class=”form-control” required
placeholder=”<?php _e( “Confirm password”, ‘kleo_framework’ ); ?>”><input type=”hidden” name=”signup_profile_field_ids” id=”signup_profile_field_ids”
value=”1″/>
<?php wp_nonce_field( ‘bp_new_signup’ ); ?>
<?php } else { ?><input type=”text” id=”reg-username” name=”user_login” class=”form-control” required
placeholder=”<?php _e( “Username”, ‘kleo_framework’ ); ?>”><input type=”text” id=”reg-email” name=”user_email” class=”form-control” required
placeholder=”<?php _e( “Your email”, ‘kleo_framework’ ); ?>”><?php } ?>
<button class=”btn btn-lg btn-default btn-block” name=”signup_submit”
type=”submit”><?php esc_html_e( “Register”, “kleo_framework” ); ?></button>
<span class=”clearfix”></span>
</form><!– END Modal Register form –>
<?php endif;
`August 4, 2018 at 20:30 #205423Kieran_SQModeratorHi,
Please can you share access to your site so I can look into this for you. I cannot trigger the login modal from the front-end of your website, it doesn’t look like you’re using the KLEO login/logout menu items in your ‘My Account’ menu.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 20:41 #205425randrcomputersParticipantits on dev site:
wpt.vpinball.com
the “KLEO” login is far right on top menu
login i have been use is under “my account” dropdownAugust 4, 2018 at 20:45 #205426Kieran_SQModeratorHi,
I will still need login credentials to look into this and see the error at hand.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 20:53 #205428Kieran_SQModeratorHi,
I can see the issue with being taken to the wp-login.php page, however, I am unable to login using the credentials. Please double check that they are correct. If they are correct then please update the password for the account and share again here.
Have you installed and plugins in the last 48hrs? If so please try disabling these, purge all caches and see if that resolves the issue.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 21:16 #205433Kieran_SQModeratorHi,
I have logged into your site and checked the login process with the KLEO parent theme active. You’re getting the same issue with the parent active therefore it is not the child theme change that is causing the issue.
I have tested login on the demo, locally and on another live site and it is working as expected therefore I think this is a plugin issue.
Please disable all plugins except for BuddyPress, K Elements and WP Bakery, purge your website cache, CDN and browser cache (Ctrl+F5) and test is a new Google Chrome Incognito window (or other browser private mode).
The most likely culprits for issues like this are security plugins.
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
August 4, 2018 at 21:30 #205435randrcomputersParticipantI run no cache, only security i run is wordfence and wp-spamshield on live site but will try disabling some plugins on dev site for test. thank so much for looking
August 4, 2018 at 21:33 #205436Kieran_SQModeratorHi,
You’re welcome. Don’t forget to try disabling them all, either one by one, or all at once – whichever suits. I would recommend starting with WordFence on the dev site to see if this is plugin causing it.
All the best,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.