[Skip to main content](#vessel-content)

#   How to change menu item position

##

- **[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")**
- [![alexmartin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/31976-alexmartin "View alexmartin's Profile") Topic Author
- [ Offline](/forum/user/31976-alexmartin)

Less More

- Posts: 132
- Thank you received: 3
-
-

2 years 7 months ago [\#360015](#360015) by [alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")  *[How to change menu item position](/forum/4-how-to/907958-how-to-change-menu-item-position#360015 "Hi, on the Control Panel left menu, i would like to reposition Download menu right below Customer Account menu - how can i do it? I have lates Joomla 5 and Latest Hikashop  Image attached")* was created by *[alexmartin](/forum/user/31976-alexmartin "View alexmartin's Profile")*

Hi,
on the Control Panel left menu, i would like to reposition Download menu right below Customer Account menu - how can i do it?
I have lates Joomla 5 and Latest Hikashop

Image attached

- [ ![HikaMenu1.png](/forum/attachment/59033) ](/forum/attachment/59033 "HikaMenu1.png") [ ](/forum/attachment/59033?download=1 "HikaMenu1.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwNzk1OC1ob3ctdG8tY2hhbmdlLW1lbnUtaXRlbS1wb3NpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

2 years 7 months ago [\#360016](#360016) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to change menu item position](/forum/4-how-to/907958-how-to-change-menu-item-position#360016 "Hi, on the Control Panel left menu, i would like to reposition Download menu right below Customer Account menu - how can i do it? I have lates Joomla 5 and Latest Hikashop  Image attached")*

Hi,

You'll need to write custom PHP code in the file user / cpanel for your frontend template via the menu Display&gt;Views.
Something like that at the beginning should do it: Code:

&lt;?php function repositionArrayElement(array &amp;$array, $key, int $order): void { if(($a = array_search($key, array_keys($array))) === false){ return; } $p1 = array_splice($array, $a, 1); $p2 = array_splice($array, 0, $order); $array = array_merge($p2, $p1, $array); } repositionArrayElement($this-&gt;buttons, 'download', 1); ?&gt;

This is based on this: [ stackoverflow.com/a/63329352](https://stackoverflow.com/a/63329352)
Note that I haven't tested it.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzkwNzk1OC1ob3ctdG8tY2hhbmdlLW1lbnUtaXRlbS1wb3NpdGlvbj90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
