Join our new community forum for support & discussion

Join Now

Home Support General HivePress Redirect destination page for “my account”

Redirect destination page for “my account”

  • Author
    Posts
  • Bemay1

    Hi, when user clicks the my account icon (mobile) or his username (pc) it redirects to normal settings page… My question is, how to redirect to a custom page?
    Thank you!

    yevhen developer

    This would require overriding the template part with this link via a child theme. By default, user is always redirected to the first item in the account menu.

    Bemay1

    After thinking about the last sentence you wrotte i though about an alternative way and got it:

    add_filter(
    	'hivepress/v1/menus/user_account',
    	function( $menu ) {
    		$menu['items']['custom_item_name'] = [
    			'label'  => 'Minha Conta',
    			'url'    => 'https://google.com',
    			'_order' => 0,
    		];
    
    		return $menu;
    	}
    );

    If somebody else needs, you just need to change the fields “label” and “url”

    ihor developer

    Thanks for sharing 🙂

    alexif

    Hi there!

    Can the label be customized a bit so that it can contain also a fontawesome icon?
    Or to make it look like an actual button?

    Thanks!

    yevhen developer

    Could you clarify what label you mean?

    alexif

    The menu element (the text) to have am icon after or before it

    yevhen developer

    Unfortunately label can not be customised to contain a fontawesome icon in the current version. But you can add button under menu with customising template. Here is useful tutorial how to customise templates https://youtu.be/LkojYp-8uwY

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

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.