• Resolved norsubs

    (@norsubs)


    I have made a second profile form with only 3 fields, that I want to display on a specific page.

    I have pasted the forms shortcode in the page-source and the 3 fields are showing as I want them too.

    The problem is, that I do not want the cover photo, the profile photo or the gear icon to show on this page.

    I have customized the settings for the form not to show the cover photo, but there are no choice for customizing the settings for the profile photo or the gear icon.

    https://ksmedia.no/cocacolaclub_no/remove_xed_items.png

    Maybe there are Snippets to use to remove these features from this certain form?

Viewing 3 replies - 1 through 3 (of 3 total)
  • @norsubs

    You can try this code snippet and change 1061 to your form_id.

    Install the code snippet into your active theme’s functions.php file
    or use the “Code Snippets” Plugin.

    add_action( "um_before_profile_form_is_loaded", "um_111821_remove_header" );
    function um_111821_remove_header( $args ){
    
        if( $args["form_id"] == '1061' ){
            remove_action( 'um_profile_header_cover_area', 'um_profile_header_cover_area', 9 );
            remove_action( 'um_profile_header', 'um_profile_header', 9 );
            remove_action( 'um_profile_menu', 'um_profile_menu', 9 );
        }
    }

    Code snippet found in this guide:

    https://docs.ultimatemember.com/article/1657-how-to-hide-profile-header

    Thread Starter norsubs

    (@norsubs)

    @missveronicatv

    Thank you very much!! It works like a charm.

    As always you are the best!

    Happy Holidays from Norway. ??

    Plugin Support andrewshu

    (@andrewshu)

    Hi @norsubs

    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 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Issues with a second profile form / page’ is closed to new replies.