Home › Forums › Legacy Support › Support queries › Styling issues › Elementor Login form
- This topic has 21 replies, 4 voices, and was last updated 5 years, 2 months ago by logan.
-
AuthorPosts
-
April 1, 2019 at 10:32 am #202721NikiqiParticipantI would like to know how to add WPLMS Login button with drop down menu to Elementor made home page. Elementor Login widget is useless, because it doesn`t work correctly. For example it redirects to WP login page if user makes a mistake in filling form. I called to Elementor support, they told that they would work on this issue sometime in future. I have Elementor home page and I need Login form as in other WPLMS based pages. Please help!April 2, 2019 at 5:39 am #202841loganMemberHello, Please share your home page url which is designed by elementor. also admin credentials so that i can check this issue. Waiting for quick response.April 2, 2019 at 6:04 am #202845NikiqiParticipantThis reply has been marked as private.April 2, 2019 at 9:17 am #202867loganMemberThe login widget is contained within the header. If header is not printing there then login widget will not appear. Select a template with header only then it will appear.April 2, 2019 at 10:54 am #202888NikiqiParticipantI want to use Elementor build home page and need login form there. Have you any solution to realise it?April 5, 2019 at 6:22 am #203361loganMemberThis reply has been marked as private.April 5, 2019 at 7:29 am #203368NikiqiParticipantThis reply has been marked as private.April 5, 2019 at 11:12 am #203382loganMemberHello, I have added this code in your customizer.php add_shortcode('custom_header_code',function (){ ob_start(); echo '<header style="display: unset !important;">'; if ( function_exists('bp_loggedin_user_link') && is_user_logged_in() ) : ?> <a href="<?php bp_loggedin_user_link(); ?>" class="smallimg vbplogin" style="font-size: 20px !important;"><?php $n=vbp_current_user_notification_count(); echo ((isset($n) && $n)?'<em></em>':''); bp_loggedin_user_avatar( 'type=full' ); ?><span><?php bp_loggedin_user_fullname(); ?></span></a> <?php else : ?> <a href="#login" rel="nofollow" class=" vbplogin"><span><?php _e('LOGIN','vibe'); ?></span></a> <?php endif; $style = vibe_get_login_style(); echo '<div id="vibe_bp_login" class="'.$style.'">'; if ( is_user_logged_in() ) : do_action( 'bp_before_sidebar_me' ); ?> <div id="sidebar-me"> <div id="bpavatar"> <?php bp_loggedin_user_avatar( 'type=full' ); $show_view_profile = apply_filters('wplms_sidebarme_show_view_profile',1); ?> </div> <ul> <li id="username"><a href="<?php bp_loggedin_user_link(); ?>"><?php bp_loggedin_user_fullname(); ?></a></li> <?php do_action('wplms_header_top_login'); ?> <?php if($show_view_profile){?> <li><a href="<?php echo bp_loggedin_user_domain() . BP_XPROFILE_SLUG ?>/" title="<?php _e('View profile','vibe'); ?>"><?php _e('View profile','vibe'); ?></a></li> <?php } ?> <li id="vbplogout"><a href="<?php echo wp_logout_url( get_permalink() ); ?>" id="destroy-sessions" rel="nofollow" class="logout" title="<?php _e( 'Log Out','vibe' ); ?>"><i class="icon-close-off-2"></i> <?php _e('LOGOUT','vibe'); ?></a></li> <?php if(vibe_get_option('wp_admin_access') > 1){ ?> <li id="admin_panel_icon"><?php if (current_user_can("edit_posts")) echo '<a href="'.vibe_site_url() .'wp-admin/" title="'.__('Access admin panel','vibe').'"><i class="icon-settings-1"></i></a>'; ?> </li> <?php } ?> </ul> <ul> <?php $loggedin_menu = array( 'courses'=>array( 'icon' => 'icon-book-open-1', 'label' => __('Courses','vibe'), 'link' => bp_loggedin_user_domain().BP_COURSE_SLUG ), 'stats'=>array( 'icon' => 'icon-analytics-chart-graph', 'label' => __('Stats','vibe'), 'link' => bp_loggedin_user_domain().BP_COURSE_SLUG.'/'.BP_COURSE_STATS_SLUG ) ); if ( bp_is_active( 'messages' ) ){ $loggedin_menu['messages']=array( 'icon' => 'icon-letter-mail-1', 'label' => __('Inbox','vibe').(messages_get_unread_count()?' <span>' . messages_get_unread_count() . '</span>':''), 'link' => bp_loggedin_user_domain().BP_MESSAGES_SLUG ); } if ( bp_is_active( 'notifications' ) ){ $n=vbp_current_user_notification_count(); $loggedin_menu['notifications']=array( 'icon' => 'icon-exclamation', 'label' => __('Notifications','vibe').(($n)?' <span>'.$n.'</span>':''), 'link' => bp_loggedin_user_domain().BP_NOTIFICATIONS_SLUG ); } if ( bp_is_active( 'groups' ) ){ $loggedin_menu['groups']=array( 'icon' => 'icon-myspace-alt', 'label' => __('Groups','vibe'), 'link' => bp_loggedin_user_domain().BP_GROUPS_SLUG ); } $loggedin_menu['settings']=array( 'icon' => 'icon-settings', 'label' => __('Settings','vibe'), 'link' => bp_loggedin_user_domain().BP_SETTINGS_SLUG ); $loggedin_menu = apply_filters('wplms_logged_in_top_menu',$loggedin_menu); foreach($loggedin_menu as $item){ echo '<li><a href="'.$item['link'].'"><i class="'.$item['icon'].'"></i>'.$item['label'].'</a></li>'; } ?> </ul> <?php do_action( 'bp_sidebar_me' ); ?> </div> <?php do_action( 'bp_after_sidebar_me' ); /***** If the user is not logged in, show the log form and account creation link *****/ else : if(!isset($user_login))$user_login=''; do_action( 'bp_before_sidebar_login_form' ); ?> <form name="login-form" id="vbp-login-form" class="standard-form" action="<?php echo apply_filters('wplms_login_widget_action',site_url( 'wp-login.php', 'login_post' )); ?>" method="post"> <div class="row"> <div class="col-md-6 col-sm-6"> <label><?php _e( 'Username', 'vibe' ); ?><br /> <input type="text" name="log" id="side-user-login" class="input" tabindex="1" value="<?php echo esc_attr( stripslashes( $user_login ) ); ?>" /></label> <label><?php _e( 'Password', 'vibe' ); ?> <a href="<?php echo wp_lostpassword_url(); ?>" tabindex="5" class="tip vbpforgot" title="<?php _e('Forgot Password','vibe'); ?>"><i class="icon-question"></i></a><br /> <input type="password" tabindex="2" name="pwd" id="sidebar-user-pass" class="input" value="" /></label> <div class="checkbox small"> <input type="checkbox" name="sidebar-rememberme" id="sidebar-rememberme" value="forever" /> <label for="sidebar-rememberme"><?php _e( 'Remember Me', 'vibe' ); ?></label> </div> <?php do_action( 'bp_sidebar_login_form' ); ?> <input type="submit" name="user-submit" id="sidebar-wp-submit" data-security="<?php echo wp_create_nonce('wplms_signon'); ?>" value="<?php _e( 'Log In','vibe' ); ?>" tabindex="100" /> <input type="hidden" name="user-cookie" value="1" /> </div> <div class="col-md-6 col-sm-6"> <div class="inside_login_form"> <?php $enable_signup = apply_filters('wplms_enable_signup',0); if ( $enable_signup ) : $registration_link = apply_filters('wplms_buddypress_registration_link',site_url( BP_REGISTER_SLUG . '/' )); printf( '<a href="%s" class="vbpregister" title="'.('Create an account','vibe').'" tabindex="5" >'.( 'Sign Up','vibe' ).'</a> ', $registration_link ); endif; do_action( 'login_form' ); //BruteProtect FIX ?> </div> <?php do_action( 'bp_after_sidebar_login_form' ); ?> </div> </div> </form> <?php endif; echo' </div></header> ' ; $html = ob_get_clean(); return $html; });
by using this shortcode [custom_header_code]. you can print the login/register button anywhere. Refer:April 5, 2019 at 12:40 pm #203421NikiqiParticipantThis reply has been marked as private.April 8, 2019 at 5:30 am #203642AvaMemberHi Nikiqi Please the below Custom Css code to Wp-admin > Appearanace > Customization > Custom Css > Publish #vibe_bp_login { width: 420px; padding:20px !important; top: 40px; } #vibe_bp_login .inside_login_form { display: flex; bottom: -19px; } Hope this helps.April 8, 2019 at 6:31 am #203656NikiqiParticipantThis reply has been marked as private.April 8, 2019 at 12:52 pm #203700loganMemberHello, I have added some styling codes and it is fixed now. here: http://prntscr.com/n92wit Check and please confirm.April 8, 2019 at 1:27 pm #203710NikiqiParticipantThis reply has been marked as private.April 8, 2019 at 1:34 pm #203711NikiqiParticipantThis reply has been marked as private.April 9, 2019 at 1:56 pm #203897loganMemberYes i can see that issue. the problem is you are using different login style. and i have share you different login style widget they both are collapsing with each other. now i have to write a new code so that can adjust automatically fetch the selected login form by user. i need little time for this. -
AuthorPosts
- The topic ‘Elementor Login form’ is closed to new replies.