How to build a responsive PrestaShop menu without code

How to build a responsive, mobile-friendly menu in PrestaShop without writing code: structure, tablet and desktop breakpoints, category pictures, touch drawer, accessibility and click measurement.

Comment construire un menu responsive PrestaShop sans code

On a shop with dozens of categories, a menu that only opens a short list on hover forces the visitor to guess where the product sits. On a phone, the same list becomes a stack of links. Mega Menu Studio builds a wider menu in the back office by drag and drop, without changing the theme. The order matters: structure, mobile layout, visuals, accessibility, then measurement.

Can I build a menu by drag and drop without writing code?

Yes: the Add button in the Structure column offers the element types, and each element then moves in the tree by drag and drop, with no HTML or CSS to write.

The Menus page lists each menu with its position, its state, its HTML weight and its SQL statements. New menu offers a blank menu, six templates built from your categories, brands and CMS pages, or the demo menu. A template creates an inactive draft: the shop does not change before publication.

Three menus in the list, with their actions, including Edit, Translate, Preview on the shop and Duplicate.
Three menus in the list, with their actions, including Edit, Translate, Preview on the shop and Duplicate.

The setup, screen by screen

  1. Open Menus, then New menu. Choose a position: Header (main menu), Below the header (full width), Left column, Footer, Bottom bar of phones, or None for a menu inserted in a CMS page with [wmms_menu id="3"].
  2. Structure sits on the left of the editor, the Properties of the selected element on the right. Add a category, a product, a brand, a CMS page, a link, a picture, an HTML block or a search field; the Add button only offers the types allowed at that place.
  3. Enter the labels in the default language. A category name left empty uses the native catalog name.
  4. Save the draft, check the preview on desktop, tablet and mobile, then Publish. Preview on the shop opens a signed link valid for 24 hours: customers keep seeing the published menu, and anyone with the link sees the draft.
  5. Open Translations for the other languages, then activate the menu if it is still inactive.

Who it is for, and who does not need it

It targets deep catalogs: fashion, home, spare parts, food, professional equipment. A shop with five categories whose native menu is enough does not need this work. The module adds its menus through the theme’s standard hooks. It runs on PrestaShop 1.7.8, 8.0 and 9.0 or later, with PHP 7.4 minimum.

Three conditions: the GD extension, writable folders, and a valid WePresta licence. Classic and Hummingbird are supported; another theme must expose the standard hooks, otherwise the menu goes through a CMS shortcode. The Mega Menu Studio page and its documentation detail these limits.

What the module does not do

  • It changes no PrestaShop or theme file and does not replace your theme.
  • It builds no CMS pages; the shortcode inserts a menu into an existing page.
  • It never disables the native menu, does not certify WCAG compliance, sends no data to a third-party analytics tool and does not integrate with a consent manager in this version.

How do I make the menu responsive on tablet and mobile?

For a horizontal menu, the module renders one HTML and two presentations: a bar with panels above the desktop breakpoint, a full-screen drawer below it. Vertical menus remain accordions.

The drawer is not the desktop panel shrunk. It opens level by level: an item with children opens a new screen, with a Back button, a Close menu button and a horizontal swipe. Columns and tabs become stacked groups. Focus stays in the drawer, page scrolling is locked, and every target is at least 48 px.

The breakpoints are set in Settings, section Display on the storefront: Tablet from (pixels), 768 by default, and Desktop from (pixels), 1024 by default. Below the desktop breakpoint, the menu becomes the drawer, tablets included; above it, the full bar appears. The tablet breakpoint classifies devices: it controls the bottom bar (below it, and on tablets as an option) and per-device hiding. A tablet 800 px wide therefore stays in the drawer while the desktop breakpoint is 1024.

The Settings page: breakpoints, cache lifetimes, statistics retention and module status.
The Settings page: breakpoints, cache lifetimes, statistics retention and module status.

Without JavaScript, the links stay usable: panels open on hover and focus, and the list stays stacked on a phone. The HTML of the panels is cached per shop, language and customer group, and a cached page runs no query from the module. A page cache such as Cache Pro stays compatible.

How do I show categories and their pictures in the menu?

A category can show its subcategories as a list or a grid of tiles with their product count; a product appears as a link or a card with picture and price.

The open mega panel: illustrated categories, featured products, the workshop video and brand logos.
The open mega panel: illustrated categories, featured products, the workshop video and brand logos.

In Properties, a Category element sets the depth of subcategories, a maximum per level and the list or grid display. The grid uses each category’s picture. A category without a picture gets a drawn thumbnail from the module when the menu is created from a template, with the number of temporary pictures to replace.

A product is picked by hand, from a category by position or newest, or from best sellers. The card shows the picture, the name and the price as PrestaShop presents it to the visitor’s group. A Sale badge appears when PrestaShop presents a discount. A banner accepts a link and dates: outside those dates, it is not rendered.

The Pictures block accepts JPG, PNG, GIF and WebP (when GD supports it) up to 5 MB and 4,000 px a side, re-encodes the file and requires alt text. Panel pictures load lazily. A deleted reference does not break the menu: it is not rendered and the editor shows it as missing.

How do I make the menu sticky and add a bottom bar on phones?

Tick the menu’s sticky option: when the bar leaves the screen, it fixes to the top with a placeholder of its height.

The option sits in the menu settings, with a compact variant that reduces the height and hides the logo and the bar images. No animation plays when the visitor asked to reduce motion. Inside an already sticky header, such as Hummingbird’s, the module adds no second fixed bar.

The Bottom bar of phones position shows a fixed bar of 4 or 5 shortcuts, each with an icon and a short label: link, category, CMS page, cart, account, search or drawer. It respects the safe area of notched screens and adds space at the bottom of the page.

A concrete case: a spare-parts shop

The main menu runs in columns by machine family, with a search field and links to the brands. On a phone, the same structure becomes a three-level drawer, and the bottom bar keeps the cart and the account within thumb reach. The manager did not touch the theme.

Does the menu need to be keyboard accessible?

Yes: a menu that only opens with a mouse excludes visitors who navigate with a keyboard or a screen reader.

The bar uses semantic navigation with lists and links. An item with a page keeps its link and gets a separate submenu button, with aria-expanded and aria-controls. Enter or Space opens, the arrows move between bar items or through a column, and Escape closes and returns focus to the button. Closed panels are truly hidden, and an icon-only item keeps a label read by the screen reader.

In the editor, a warning flags text and background pairs below a contrast ratio of 4.5:1, without blocking the save. It helps towards WCAG 2.1 AA; it does not certify the shop’s compliance and does not replace an audit. To check the real pages: EAA and WCAG 2.1 AA accessibility audit.

How does the menu structure affect search rankings (SEO)?

Every link of the published menu is written into the HTML by the server, including panels, tabs and every drawer level.

The script creates no link: it opens and closes panels, applies the A/B variant already in the page and builds the video player. A search engine therefore finds the same tree as a visitor without JavaScript. The labels are yours, pictures carry alt text, and only a custom link can receive a nofollow.

Structure matters as much as markup. A menu that places deep categories one click from the home page gives search engines a short path to them. The module does not rewrite page addresses or tags; a dedicated audit remains the right tool: SEO errors: full shop audit.

How do I test two menu versions and measure what the menu brings?

On a published menu, Create a test copies the document into variant B, which you edit with the variant switch. Start the test then splits visitors evenly.

The split is chosen in the browser, not on the server: the module sends the known variant and the other one inside a template the browser does not display, and the script applies the right choice. This method stays compatible with a page cache. Results compare views, views with a click, click rate, orders and order rate, with a 95% confidence interval and a p-value. The module waits for 100 views and 10 views with a click per variant before concluding. Keep A or Keep B publishes the chosen variant; Stop the test keeps A.

Statistics are anonymous daily counters: views, opens, clicks per item, device, language, page type, and orders attributed to a visit that clicked in the menu. No visitor identifier, IP address or user agent is stored. Retention is set in Settings, and the CSV export takes the current view. A menu holds at most 600 elements, the structure is limited to 7 levels and a panel to 6 columns.

Frequently asked questions

Do I have to change my theme or write code to change the menu?
No. The menu is built in the back office and displayed through the theme’s standard hooks, or through a shortcode in a CMS page. No PrestaShop or theme file is changed. Classic and Hummingbird are supported; for another theme, check that it exposes the standard hooks or use the shortcode.
Can the same menu really look different on a tablet and on a phone?
Yes. The same HTML produces a bar with panels above the desktop breakpoint, then a full-screen drawer below it. The desktop breakpoint decides the switch to the drawer; the tablet breakpoint controls the bottom bar and per-device hiding. An item can also be hidden per device without creating two menus.
Where do I set the width at which the menu switches to mobile?
In Settings, section Display on the storefront. Tablet from (pixels) is 768 by default and accepts 480 to 1,200; Desktop from (pixels) is 1,024 and accepts 600 to 1,600, always above the tablet breakpoint. Below the desktop breakpoint, the menu shows the drawer; above it, the full bar. The tablet breakpoint controls the bottom bar and per-device hiding.
Can the menu be used with a keyboard and a screen reader?
It provides semantic navigation, submenu buttons with aria-expanded and aria-controls, arrow keys, Escape that returns focus, a visible focus indicator and a focus trap in the drawer. A warning flags contrasts below 4.5:1 in the editor. The module helps towards WCAG 2.1 AA without certifying the shop’s compliance.
Why does my mega menu look wrong on a tablet?
Below the desktop breakpoint the menu becomes the drawer by design, so a tablet 800 px wide shows no panels. To keep the bar on a tablet, set the desktop breakpoint below the tablet width, with the tablet breakpoint lower still. Also check the per-device hiding of items.

Products in this article

Find the module your store needs

Browse the modules