• Resolved jcabrera93631

    (@jcabrera93631)


    How can I change the HTML profile header to re-arrange the content and profile image? When using an override profile template.

    /**
    		 * UM hook
    		 *
    		 * @type action
    		 * @title um_profile_header
    		 * @description Profile header area
    		 * @input_vars
    		 * [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
    		 * @change_log
    		 * ["Since: 2.0"]
    		 * @usage add_action( 'um_profile_header', 'function_name', 10, 1 );
    		 * @example
    		 * */
    
    			add_action( 'um_profile_header', 'my_profile_header', 10, 1 );
    			function my_profile_header( $args ) {
    				add_filter( 'um_core_pages', 'my_core_pages', 10, 1 );
    				function my_core_pages( $pages ) {
    					// your code here
    					$pages['my_page_key'] = array( 'title' => __( 'My Page Title', 'my-translate-key' ) );
    					return $pages;
    				}
    			}
    		  ?>
    
    		<div class="card">
    			<div class="card-body">
    				<?php do_action( 'um_profile_header', $args ); ?>
    			</div>
    		</div>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to change header profile HTML layout’ is closed to new replies.