webdevpuneet.com

Ecommerce Mega Menu — Link Columns

Desktop · 1280px · shown at 0% · edit the text, images and colours in the panel

Ecommerce Mega Menu — Link Columns — Free Website Section Template

Navbar · v1.0.0 · Updated 2026-11-14 · Responsive · GSAP animation · HTML, React & Vue

CategoryNavbar
Tagsnavbarmega menuecommercestoreshopheadersearchcartdropdownlight
Updated October 20, 2026

Extend with AI

Take This Section Further With AI

Ask an AI assistant to adapt the mega menu: add a live product search with suggestions, show the cart contents in a drawer, or highlight the current category.

Prompt to recreate it

Copy this into your AI assistant of choice to build the effect from scratch, or as a jumping-off point for your own variant:

text
Create a responsive ecommerce header with a mega menu in plain HTML, CSS and JavaScript.

- A thin dark top bar with a message on the left and small links on the right.
- A main row with the logo, a centred pill search form (GET, field name q) and account, wishlist and cart icon links with a small count badge on the cart.
- A category bar below with five items. Two have a full-width dropdown panel with three link columns (small uppercase titles) and a featured image card with a tag, title and button. The others are plain links.
- Hover opens a panel after about 90 ms and closes it 170 ms after the pointer leaves; a click pins it; only one panel is open at a time.
- Each trigger is a button with aria-expanded and aria-controls. Arrow Down opens the panel and focuses its first link, Esc closes it and returns focus, tabbing out closes it, and a click elsewhere closes it.
- On screens under 860 px show a burger button, move the search to its own row and turn the categories into tap-to-open accordions inside a dropdown menu.
- A sticky header with a soft shadow after scrolling. Without JavaScript the panels open on :hover and :focus-within.

Want to tighten it up first? Run this prompt through the AI Prompt Studio to score it across 8 quality dimensions, catch anti-patterns, and tune the wording for Claude, ChatGPT, or Gemini before you paste it in.

What's included

Features

Store header with a top bar, logo, search form, account, wishlist and cart icons and a cart count badge
Full-width mega menu panels with up to three link columns and a featured image card
Up to six menu items; an item with no links becomes a plain link such as Sale
Hover with an intent delay, click to pin open, one panel open at a time
Arrow Down, Esc and Tab support with aria-expanded and aria-controls kept in sync
Phone layout with a burger menu, a full-width search row and tap-to-open accordions
Sticky header with an optional hide-on-scroll-down
Links written as "Label | URL" lines; unsafe URLs are replaced automatically
Search form that sends visitors to your search page with ?q=
SiteNavigationElement structured data for the main menu
Panels still open on hover and focus without JavaScript
Export HTML, a ZIP with images, React or Vue, or fork to My Code

About this section

Ecommerce Mega Menu — Free Store Header With Link Columns

Ecommerce Mega Menu — Link Columns: The classic online-store header: a thin top bar, then the logo, a search field and account, wishlist and cart icons, with the shop categories underneath. Hover or click a category and a full-width mega menu drops down with up to three columns of links and a featured card with an image. Plain links such as Sale work too. On phones everything collapses into a burger menu with tap-to-open category accordions.

Ecommerce Mega Menu — Link Columns is a free, responsive store header with a full-width dropdown for every shop category. A thin top bar carries a delivery message and small links, the main row holds the logo, a search field and account, wishlist and cart icons with a count badge, and the category bar below opens panels of up to three link columns and a featured card with a photo, a tag, a title and a button.

A menu that opens the way shoppers expect

Hover a category and its panel opens after a short delay, so a pointer crossing the bar does not make the menu flicker. Click it and the panel stays open until you click again, press Esc or move to another category. Only one panel is open at a time, and a panel that is not needed simply is not there: leave the first column empty and the item becomes a plain link such as Sale or New in.

Keyboard and screen-reader friendly

Each category is a real button with aria-expanded and aria-controls. Arrow Down opens a panel and moves focus to its first link, Esc closes it and returns focus to the button, and tabbing out of the panel closes it. Without JavaScript the panels still open on hover and focus, so the links are never locked away.

Made for phones

On narrow screens the header collapses into a burger button, the search field drops to its own row, and every category becomes a tap-to-open accordion inside the menu. Link columns stack so nothing needs sideways scrolling.

Edit it in the browser

Change the logo, top bar, search placeholder, icon links and cart count, add up to six menu items, write each panel's columns as "Label | URL" lines, and upload a photo for the featured card. Colours, fonts and corner radius come from the shared theme, so the header matches every other section. The menu is also written as SiteNavigationElement data for search engines.

Export it

Copy one HTML file with the CSS included, download a ZIP with your images, copy a React or Vue component, or fork it into My Code. Pair it with the Product Grid for the shop front and the Multi-Column Footer at the bottom of the page.

Why use it

Why Use the Ecommerce Mega Menu — Link Columns

🛒
Built like a real store header
Search, account, wishlist and cart sit where shoppers look for them, with a badge for the cart count.
⌨
Works without a mouse
Buttons, aria attributes and keyboard shortcuts make the menu usable with a keyboard or a screen reader.
📱
Phone-ready panels
Every dropdown turns into an accordion on small screens, so large catalogues stay easy to browse.

How it’s different

How It’s Different From Other Free Section Templates

✎
Editable, not just copyable
Change text, links, images, colours and fonts in the browser before you export, instead of editing someone else’s code by hand.
◐
One theme for every section
Colours, fonts, radius and width are shared CSS variables, so every section you combine looks like one website.
⇲
Responsive by container
Container queries make each section adapt to its own width, in a full page, a column or a page builder.
✦
GSAP animation built in
Every section animates in with GSAP and ScrollTrigger, stays visible without JavaScript and respects reduced motion.
</>
HTML, React and Vue
Export a single HTML file, a ZIP with your images, a React component or a Vue component, or fork the code into My Code.
◍
Free, private, saved
No account and no watermark. Designs, uploaded images and fonts stay in your browser, with a backup file you can restore anywhere.

Step by step

How to Use

  1. 1
    Edit the contentFill in the logo, top bar, search & icons and menu items in the panel. Switch the top bar on or off. Wrap words in *asterisks* to colour them.
  2. 2
    Add your imagesUpload your own images (resized in your browser and kept on your device) or paste a hosted image URL.
  3. 3
    Match your brandPick a colour preset or exact colours, choose heading and body fonts from Google Fonts or your own uploaded font, set the corner radius and width, or apply your brand kit.
  4. 4
    Animate and previewChoose a GSAP entrance effect and speed, press Play animation, and check the section on desktop, tablet and mobile.
  5. 5
    Save and exportSave it to My designs, then export a single HTML file, a ZIP with your images, a React or Vue component, or fork it into My Code.

Real-world uses

Common Use Cases

🏬
Stores with many categories
Group furniture, kitchenware, electronics and gifts into clear columns so shoppers reach a product in two clicks instead of searching through long lists.
🎁
Seasonal campaigns
Use the featured card to promote a sale, a gift guide or a new collection right where shoppers are already browsing categories.
🧩
Marketplace and catalogue sites
Give a directory or marketplace a familiar header with search first and categories underneath, with room for a promoted listing in every panel.
🧪
Prototyping a shop redesign
Test a new menu structure with real labels and links before building it into your platform, then export the HTML or React component.

In real websites

Website Templates That Use the Ecommerce Mega Menu — Link Columns Section

The Ecommerce Mega Menu — Link Columns section is part of 3 complete website templates in the free Website Builder, so you can see it in a full page before you use it on its own: Online Store Website (Full Shop), Cafe & Coffee Shop Website (Order Online), Fashion Boutique Website (Online Store). Open any of them in the builder to edit the whole page, or keep customising this section by itself.

Got questions?

Frequently Asked Questions

A mega menu is a large dropdown that shows many links at once, grouped into columns, often with an image. Online stores use it so shoppers can see every sub-category without opening several small menus.

Leave the first link column of that item empty. The item then renders as an ordinary link to its own URL, with no dropdown arrow, which suits pages such as Sale or New in.

Yes. Below a certain width the header shows a burger button, and each category opens as an accordion inside the menu. The search field moves to its own full-width row.

Each category is a button with aria-expanded and aria-controls. Arrow Down opens a panel, Esc closes it and returns focus, and tabbing out closes it. Without JavaScript the panels open on hover and focus.

It is a normal GET form. Set the search page address in the editor and the form sends visitors to that page with their words in the q parameter, which most store platforms understand.

It saves an editable copy of your Ecommerce Mega Menu — Link Columns in My Code, the UI Snippets code editor: the section markup goes in the HTML panel, its CSS (theme variables, base styles and layout) in the CSS panel, and the GSAP library is added as a CDN link, so you can keep refining the code and save your own versions.

Yes. Every section is free for personal and commercial work, with no account, no watermark and no attribution: export it on its own as HTML, React, Vue or Next.js from its page, or use it in a website you build and export in the Website Builder.