A good navigation bar design lets a visitor answer three questions in seconds: where am I, what can I do here, and how do I get to what I came for.
To achieve that, you keep a short list of clearly labelled items and give them a consistent layout with obvious active and hover states. You also make sure the bar works with a thumb, a keyboard and a screen reader (software that reads the page aloud for blind or low-vision users). This guide walks through the decisions in the order you make them, with online store examples and the mistakes that cost the most.
A navigation bar is the strip of links, usually at the top of every page, that lets visitors move between the main sections of a site. It works as a map: visitors scan it, pick the label that matches their goal, and click. If the scan fails, they use search or leave. Every step below aims to make that scan fast.
1. Choose and prioritise your menu items
Start from visitor tasks, not from your org chart. List everything a visitor might want to do, then group it. For a store, that typically means browsing categories, finding deals, checking delivery information, reaching support and opening the account or cart.
Then cut. A common starting point is five to seven top-level items, because people scan short lists faster and a short bar leaves room for search and cart.
Rank items by how often visitors need them. Place the most important ones at the start, with a key action (such as the cart) at the far end, since the first and last positions are the most noticed.
Keep the structure shallow too. Visitors should reach any page within two or three clicks, with the main pages available in one, and levels of submenus should stay at three at most.
How to check it: take your analytics or internal search data and confirm that each top-level item gets real use. Anything rarely clicked belongs in the footer or in a submenu.

2. Write clear labels
Labels carry most of the navigation work. Use the words your customers use, not internal jargon. “Women”, “Shoes” or “Sale” beat “Collections”, “Discover” or “Inspiration”, which could hide anything. The same instinct shows in the work of a practice worth looking at.
- Prefer one or two words per label.
- Be specific: “Delivery & Returns” tells more than “Info”.
- Keep wording consistent: do not mix “Contact us” with “Get in touch” across menus.
- Avoid clever names for core sections. Save personality for banners.
How to check it: show the labels without the page to a colleague and ask what they expect behind each one. Any hesitation means the label needs rewriting.
3. Pick the right layout
Layout depends on how many items you have and how deep your catalogue goes. The table compares the usual choices.
| Layout | Best for | Watch out for |
|---|---|---|
| Horizontal bar | Small to medium catalogues, desktop | Overflow when labels multiply |
| Sidebar (vertical) | Many categories, dashboards, filters | Takes horizontal space from content |
| Hamburger menu | Mobile screens | Hides options; lower discoverability on desktop |
| Sticky bar | Long pages, product listings | Eats screen height if too tall |
| Mega menu | Large stores with two or three category levels | Clutter, accidental closing, poor keyboard support |
Mega menus for larger stores
A mega menu is a large panel that opens under a top-level item and shows grouped subcategories. Fashion and electronics stores often use one, because shoppers need to jump straight to “Trainers” or “Laptops”.
Keep column headings clear, limit each group to the most useful links, and add a “View all” link per section. Too many options at once overwhelm visitors, and the panel gets crowded on small screens.
Sticky navigation
A sticky bar stays visible while the visitor scrolls. It is useful on long category pages, and it keeps key actions such as login or contact within reach. Keep it slim, or shrink it after the first scroll, so it does not cover products.
Breadcrumbs
Breadcrumbs are a row of text links that shows the path to the current page, such as Home > Shoes > Trainers. They complement the bar on stores with many categories, because shoppers can step back one level without using the back button.
Footer navigation
The footer is available on every page and has fewer space limits than the top bar, so it suits longer lists of secondary links such as returns, legal pages and sizing guides.

4. Build a visual hierarchy, spacing and contrast
Visual hierarchy tells the eye what matters first. Make primary items the same weight and size, then differentiate secondary links such as account or language with a lighter style. Use one highlighted element at most, for example a “Sale” label in an accent colour, otherwise nothing stands out.
- Spacing: leave enough padding between items that neighbouring labels never read as one phrase.
- Alignment: align logo, items and utility icons on a common baseline.
- Contrast: the Web Content Accessibility Guidelines (WCAG), the international accessibility standard, set minimum ratios between text and background colours. Success criterion 1.4.3 asks for a ratio of at least 4.5:1 for normal text. Criterion 1.4.11 asks for at least 3:1 for interface components and icons.
How to check it: run the bar through a contrast checker, then squint at the page. The main items should still be readable.
5. Design active and hover states
States confirm location and feedback. The active state marks the current section, typically with an underline, a bolder weight or a colour change. The hover state shows that an item is clickable. Both should rely on more than colour alone, so colour-blind visitors can still tell them apart.
On product pages, keep the parent category highlighted so shoppers know where they are. Avoid hover-only submenus that vanish when the cursor drifts by a few pixels: add a small delay or a forgiving hit area.

6. Place search and cart
In an online store, search and cart are not ordinary menu items. Visitors expect the cart icon at the top right with an item count, and search at the centre or right of the header. For catalogues with many products, show an open search field rather than a lone magnifier icon, since shoppers who know what they want will use it first. mobiforge.com walks through the specifics.
- Keep the account link next to the cart, as most stores do.
- Update the cart count immediately after adding a product.
- Do not push these utilities into a hamburger menu on mobile: keep them visible.
7. Plan mobile behaviour
On small screens, the horizontal bar usually collapses into a hamburger menu, the three-line icon that opens a hidden panel. Add the word “Menu” next to the icon if space allows, since a bare icon is easier to miss. Build it with accessibility in mind, because a badly coded hamburger button can be unusable with a screen reader. Inside the panel, show top-level categories first, with a clear way to open subcategories and to go back.
A bottom tab bar (Home, Categories, Search, Cart, Account) can work well for stores with frequent repeat visitors, because it sits within thumb reach. Choose it only if you can limit it to a few destinations.
How to check it: open the store on a real phone, one-handed, and reach any category in three taps or fewer.

8. Make it accessible and test it with users
Accessibility essentials
- Keyboard use: every link and submenu must be reachable with the Tab key.
- Keyboard operation: they must also work with Enter, Space or arrow keys (WCAG 2.1.1 Keyboard). Menus must not trap focus (2.1.2).
- Focus states: the focused item, meaning the one currently selected by the keyboard, needs a clearly visible indicator (2.4.7 Focus Visible). Never remove the outline without a replacement.
- Tap target size: WCAG 2.2 criterion 2.5.8 sets a minimum of 24 by 24 CSS pixels (the unit browsers use for layout).
- Comfort size: many teams aim for about 44 by 44 pixels, the size referenced in criterion 2.5.5 (the strictest level, AAA).
- Structure: wrap links in a
navelement with anaria-label(a text name that screen readers announce). Let hamburger buttons expose their open or closed state witharia-expanded. - Consistency: keep navigation in the same order on every page (3.2.3 Consistent Navigation).
Test with real users
Give five or so people a task, such as “find a waterproof jacket under a budget you choose”, and watch without helping. Note where they hesitate, which labels they misread and whether they reach for search.
A tree test, where users find items in a text-only menu structure, is a cheap way to validate labels before any visual design. Repeat after each change.
Common mistakes and how to fix them
- Visitors use search for everything. Cause: vague or overloaded labels. Fix: rewrite labels in customer language and trim items to the essentials.
- Submenus close by accident. Cause: hover-only menus with tight hit areas. Fix: add a short close delay, widen the hover zone and support click or keyboard opening.
- Mobile users miss the menu. Cause: a small, unlabelled icon. Fix: enlarge it, add the word “Menu” and respect tap target size.
- The sticky bar hides content. Cause: a tall header that stays fixed. Fix: shrink it on scroll or hide it when scrolling down.
- Keyboard users get lost. Cause: missing focus styles or a broken tab order. Fix: restore visible focus and test with the Tab key alone.
What to keep in mind
Keep the bar short, label it in your customers’ words, and let layout follow the size of your catalogue. Check contrast, focus and tap targets against WCAG, then confirm everything with a few real users, because only they reveal what you can no longer see. When you work on your PrestaShop store’s menu, apply these decisions in order, and read the official WCAG documentation for the exact wording of each criterion.
