Login form on navigation

This topic contains 1 reply, has 2 voices, and was last updated by  Alex Rollin 5 years, 6 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #2973

    Brian Wilson
    Buyer
    Post count: 11

    Hey there,

    My theme has a login menu that expands within the navigation bar. I’d like to make it utilize the UsersWP login instead of the regular WordPress one. Because the template calls a PHP file, I can’t just use a shortcode to display the login.

    This is what I’m working with to display the WP login:

    
    
    <?php 
    			if ( !is_user_logged_in() ) : 
    				$args = array(
    					'label_username' => __vlog( 'username_email_label' ),
    					'label_password' => __vlog( 'password_label' ),
    					'label_remember' => __vlog( 'remember_me' ),
    					'label_log_in'   => __vlog( 'log_in' ),
    				);
    			wp_login_form($args); 
    		?>	

    Is there a way some modifications can create UsersWP compatibility? The idea is to have a very simple form show only when not logged in; see attached screenshot for what I’m working with.

    Thanks!

    #2977

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    login is login, meaning that it doesn’t really matter how a user logs in, whether it is the theme form or the UsersWP form.

    That said, perhaps there is another issue. Are you trying to redirect the user when they login via that theme form? Or is some field missing from that form? Maybe you want to redirect them to the UsersWP form for registration?

Viewing 2 posts - 1 through 2 (of 2 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket