Home Support Themes TaskHive How to customize My account section in Taskhive ?

How to customize My account section in Taskhive ?

  • Author
    Posts
  • meow356

    How to customize My account section in Taskhive ? I ve been searching ways to customize it to what i wanted. Is there any way that other than Elementor ?

    ihor developer

    Please let me know what changes you want to make, add/remove some menu items or change it’s styles/layout?

    Efim

    I’m also interested. How can I add/remove some menu items?

    yevhen developer

    Please try this sample code snippet to add/remove (but adding a new account section requires advanced customizations) any menu item from My Account menu:

    add_filter(
    	'hivepress/v1/menus/user_account',
    	function( $menu ) {
    
                    // To add some menu items.
    		$menu['items']['custom_item_name'] = [
    			'label'  => 'Custom Item',
    			'url'    => 'some url',
    			'_order' => 123,
    		];
    
                    // To remove some menu items.  For example, 'Listings' item
                    unset($menu['items']['listings_edit']);
    
    		return $menu;
    	}
    );
    Efim

    It works great! Thanks!

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

The topic ‘How to customize My account section in Taskhive ?’ is closed to new replies.