• Resolved Erfan MHDi

    (@erfanmhd)


    hello,

    i really appreciate it if any of you guys could gimme a hint on how can i remove Tabs from Account page ?
    my intension is to have a simple form containing password change
    and another single form containing account info like name and email.
    i want to put those form inside a popup box so i think i have to create or find a way without using account page normal tabs structure.
    right ?!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @erfanmhd

    The only way to customize the account tabs is to override the template /wp-content/plugins/ultimate-member/templates/account.php

    You can check our documentation on how to override templates: https://docs.ultimatemember.com/article/1516-templates-map

    Feel free to re-open this thread if there’s any question that may come up.

    Regards,

    Thread Starter Erfan MHDi

    (@erfanmhd)

    Thanks for your response man,
    but i have already read your article about overriding the /templates/account.php file.
    no matter what i do i cannot have two separate working form for General section and Password Section outside tabular str!

    for example i have this code:

    
    <?php 
    foreach ( UM()->account()->tabs as $id => $info ) {
    	if ($id == 'password') { 
    		$current_tab = UM()->account()->current_tab;
    		if ( isset( $info['custom'] ) || UM()->options()->get( 'account_tab_' . $id ) == 1 || $id == 'general' ) { ?>
    
    <div class="um-account-nav">
    	<a href="javascript:void(0);" data-tab="<?php echo esc_attr( $id ); ?>" class="<?php if ( $id == $current_tab ) echo 'current'; ?>">
    		<?php echo esc_html( $info['title'] ); ?>
    	</a>
    </div>
    
    <div class="um-account-tab um-account-tab-<?php echo esc_attr( $id ); ?>" data-tab="<?php echo esc_attr( $id  )?>">
    	<?php $info['with_header'] = true;
    	UM()->account()->render_account_tab( $id, $info, $args ); ?>
    </div>
    
    <?php 
    		}
    	}
    } 
    ?>
    

    to show only change password fields and it shows the fields but with any wrong old-password and no matching new-password i enter in fields it only says your account has been updated successfully (instead of showing me errors) and with correct data in fields, new password won’t be saved to account … (form is not working correctly when i try to get it out of it’s tabular str).

    can you please help me with this code ?
    or even do me a favor and send me a snippet code for having a “change password” and “account edit” (general) form completely separate and outside default UM tabular str ?

    i really appreciate your help ??

    • This reply was modified 4 years, 1 month ago by Erfan MHDi.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @erfanmhd

    Have you tried using the UM Account shortcode?

    Please try adding the following to your Page.

    [ultimatemember_account tab=privacy]
    ---
    [ultimatemember_account tab=general]
    ---
    [ultimatemember_account tab=password]

    Regards,

    Thread Starter Erfan MHDi

    (@erfanmhd)

    Thanks man,
    That was exactly what i was looking for!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Simple Account Page without Tabs’ is closed to new replies.