My account section

  • Author
  • gsmobina

    1. Need to add a custom menu tab with a section in My account area like the other menu items

    2. How can keep all the other menu items on my account area always visible. currently listing, favorites, messages, packages, members, order tab gets visible only when info is there. i want to display this even when it is empty, may be with a message like ‘ no listings to show. add one’, no message to display, start messaging’ etc


    1. This requires code customizations, please try using HivePress API if you’re familiar with PHP, you can use the “hivepress/v1/menus/user_account” filter.

    2. Unfortunately it’s not possible because the check for empty pages is set in HivePress code, e.g. if there are no favorite listings then the menu item is not added.


    I am not a developer, i just manipulate codes.

    can you give me snippet for the 1st option using hivepress/v1/menus/user_account filter?
    at least a sample?


    You can add a custom menu item with this snippet, but adding a new account section requires advanced customizations:

    	function( $menu ) {
    		$menu['items']['custom_item_name'] = [
    			'label'  => 'Custom Item',
    			'url'    => '',
    			'_order' => 123,
    		return $menu;

    Thanks. I’ll see what i can do with this


    ok. i tried using this, but if i use a url it will go out of my account page.

    1. can i ‘echo’ the side menu of the account page to a custom page?

    2. or, instead of url, can i use a popup? if can how can i create the popup?

    3. or, i just need to display the shortcode on the custom item menu in my account. so how can i do this as a section without going to big customization?


    Sorry, but this requires customization and it’s not part of HivePress support, I can only provide some general guidance about HivePress API – I can’t customize your client’s website for you.

    If you install some popup plugin that supports URLs then you can set popup URL (e.g. via an anchor like “#something”) using the code snippet suggested above.

    Shortcodes can be called using this function

    Creating a built-in “My Account” page with the same sidebar would require creating a custom template file in the child theme’s folder.

    Hope this helps.


    Creating a built-in “My Account” page with the same sidebar would require creating a custom template file in the child theme’s folder.

    any guidelines to do this?

    i have noticed that you are showing woocommerce order section to the hivepress my account, can i do the same way using the say ‘dashboard’ of woocoomerce to display to hive press my account? what best way to do this?


    This would require adding a new extension, to declare the new page URL, define the template and action when this URL is accessed. Please consider some kind of a workaround, e.g. if it’s not a functional page (that doesn’t really require the account layout) you can simply add a custom URL to a page created in WordPress/Pages (using the code snippet above), and add “Return to My Account” button to this custom page if it’s required.

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

You must be logged in to reply to this topic.


Sign In

Don't have an account? Register

Forgot password?


Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Black Friday is coming! Get 25% off any purchase with FRIDAY2020 coupon code until Friday, November 27.