• Resolved sheas

    (@sheas)


    I need help moving the edit button for my profile forms to the top of the page instead of the bottom. How is this done? Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @sheas

    Please try following code snippets:

    function custom_add_profile_fields( $args ) {
    	if ( UM()->fields()->editing == true ) {
    
    		echo '<div class="um-col-alt">
            <div class="um-left um-half">
                <input type="submit" value="Update Profile" class="um-button">
            </div>
            <div class="um-right um-half"><a href="'.um_user_profile_url().'" class="um-button um-alt">
            Cancel				</a></div>
            <div class="um-clear"></div>
        </div>';
    
    	} 
    
    }
    add_action( 'um_main_profile_fields', 'custom_add_profile_fields', 99 );
    Thread Starter sheas

    (@sheas)

    Hi @aswingiri where should I insert this code snippet? to the actual plugin code?

    Thread Starter sheas

    (@sheas)

    Also I should make it clear that I want to change where the edit button is on all of my profile tabs so that when users edit a form on their profile page from the front end the edit button is at the top and not at the bottom of the page. Thank you so much!

    @sheas

    You can try this code snippet, add to your active theme’s functions.php file
    or use the “Code Snippets” plugin.

    if ( class_exists( 'UM' ) ) {
        remove_action( 'um_after_profile_fields', 'um_add_submit_button_to_profile', 1000 );
        add_action( 'um_before_profile_fields', 'um_add_submit_button_to_profile', 1000 );
    }
    Thread Starter sheas

    (@sheas)

    @missveronicatv Thank you that worked for the when in edit mode but not in view mode to click the edit button it is still at the bottom of the page. Thank you!

    @sheas

    What is your code snippet for the edit button at the bottom of your profile page?

    Thread Starter sheas

    (@sheas)

    @missveronicatv it is just what automatically happens, it is the default setting and I am not sure where to look to find the code for it

    @sheas

    Seems like you have the UM paid extension “Profile Tabs” installed why you must get help by submitting a support ticket here:

    https://ultimatemember.com/support/ticket/

    Plugin Support andrewshu

    (@andrewshu)

    Hi @sheas

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Moving the edit button for a form in profile’ is closed to new replies.