SectionAI is free + 20K tokens if you're a The4 customer, Free plan is available Install App  

Header background

Header Group - Header Ecommerce

Eira

Written by Eira

Last updated

158 views

On this page


We provide customers Multi Brand with Header Ecommerce used by big brands, bringing high aesthetics and logic. You can check this demo (pass: 4) to know how E-commerce header works.

The Header Ecommerce is a professional header and also requires more customization than other headers. However, you do not need to worry about this problem, we will guide you in detail so that you can create it.

In this guide, if you have 3 brand pages: WOMEN, MEN, and KIDS. The WOMEN brand is homepage by default. Let's stick to the steps to build it:

First, you add the section "Header Ecommerce" in "Header Group", and hide or remove another Header section.

51.gif

1. Create pages

Note: No need to create a page for WOMEN (default homepage).

1.1. Create Page template

For each Brand Menu you want to show on the Main Header, you create a template. Follow this video:

1.2. Create pages

Go to Online Store > Pages > create the new pages and assign them to the corresponding template:

1.3. Customize pages

Go to Theme customize > Pages > choose "Men", "Kids" pages to edit.

If you want to import "Men, Kids" template from Ecomus demo, you can follow this guide. You find "page.men.json" and "page.kids.json" to import.

2. Create Menu

2.1. Create menu

Important: In the "Header brands Ecomus" Navigation, a URL cannot be in two brands. For example, if you put the "Collection/All" page under both WOMEN and MEN brands, the WOMEN brand will be activated when you access "Collection/All

Go to Online Store > Navigation > create a navigation for header menu.

  • Name: Header Ecommerce (or any name you want)

  • Required handle: theme_brands

21.gif

2.2. Add menu items

In Header Ecommerce, you need to follow the structure:

  • Level 1: Brand pages (Women, Men, Kids)

  • Level 2: Menus for each brand

  • Level 3: [is_heading] and Linklist items

22.gif
  • Next, you connect Level 1 items with the corresponding pages. Follow this video:

  • Similarly, you add the sub-menus (Level 2, Level 3) for Men and Kids. This is an example:

2.3. Level 2 menu

  • By default, Level 2 shows a link or dropdown (if the Level 2 has submenu - Level 3). Check this document to know more.

  • To show a megamenu for Level 2, you add "Mega menu block" and connect it with the key: "Level 1 - Level 2". There are 4 types of Mega menu blocks, you check this document.

Example: Women - Shop. Follow this video:

Result: Different menus on brand pages

3. Create MetaObject

3.1. Create MetaObject

Step 1: Go to Content > MetaObject > Add definition

  • Required name: Brand

Follow this video:

Step 2: Click 'Add fields' > choose the Type first. You will add at least 4 fields:

  1. Name => Single line text

  2. Url => Page

  3. Logo => File

  4. Logo mobile => File

  5. Search => Product > List of products (You will create this field if you want search product suggestions to be different for each Brand Page)

  6. Cart => Product > List of products (You will create this field if you want product suggestions in the cart to be different for each Brand Page)

Follow this video:

After creating all the fields you need, you will get a MetaObject with fields:

39.gif

3.2. Add entries

Note: No need to create an entry for WOMEN (default homepage).

Go to Content > MetaObject > open "Brand" > Add entry. Please follow this video:

4. Reference elements for specific Brand Page

This step connects "page, logo, search, cart" you created in step 3 to the live page.

This feature will work as follows: if you add references to products, collections, page, blogs, or blog posts on a specific Brand Page, when you click on them, this component will remain on that page.

Reference elements included:

  • Pages => for Logo: different logo and mobile logo for each brand page.

  • Products => for search, cart suggest products.

  • Collections => when you click on these collections/ products in these collections, it will remain on the same brand page.

If you don't add a reference to it, it will default to the Brand Page Default (Home page).

You will connect for Product, Collection, Page, Blogs, or Blog posts similar the example below.

4.1. Reference for Pages

Step 1: Create Metafield (Pages)

Go to Settings > Custom data > Pages > Add definition

  • Name: Brand

  • Key: theme.brand

  • Content type: Metaobject

  • Reference: Brand

Please follow video below:

Step 2: Select Entry for Pages

Result: The logo, search suggestion, cart suggestion change when you select different brand pages. Please check this video:

4.2. Reference for Collections

Note: If your collections connect with Brand page; you can ignore products of collections. It assigns automically for products"

"The priority level is from inside out: if you have created a metafield and selected an Entry for the Brand page within a product, the product will receive the value of Products and not receive Collections. Similarly, it will prioritize Blog Posts first, then Blogs.

Step 1: Create Metafield (Collections)

Go to Settings > Custom data > Collections > Add definition

  • Name: Brand

  • Key: theme.brand

  • Content type: Metaobject

  • Reference: Brand

421.jpg

Step 2: Select Entry for Collections

You can follow this video to connect a collection to a brand page. Example, I connected "Men 3" to "MEN" brand => Video guide 1

Then all products in "Men 3" will connect to MEN brands too => Video guide 2

In the "Header brands Ecomus" Navigation, a URL collection cannot be in two brands. For example, if you put the "Men 3" collection under both WOMEN and MEN brands, the WOMEN brand will be activated when you access the "Men 3" collection.

Result: When you access the collection page, or products page of a reference collection, the corresponding brand page will be highlighted. Check "Video guide 2" above.

🎁 Exclusive Deals for The4 Customers

SectionAI

🤖 SectionAI – Build Sections with AI

Generate Shopify sections from text or wireframes.
The4 users get +20,000 bonus tokens when verifying their theme license.

  • ✅ No-code section builder
  • ✅ Works with your The4 theme
  • ✅ Build FAQs, banners, product grids & more
🚀 Try Free – Claim Tokens
EComposer

🎉 EComposer – Free 6-Month Plan

Build landing pages, sales funnels, and more with drag & drop.
The4 users get 6 months free (save $114).

  • ✅ 100+ templates ready to use
  • ✅ Build any Shopify page
  • ✅ No coding required
🔓 Get 6 Months Free

Enjoy a free 3-day trial. Then get your first month for $1. Try Now

We uses cookies to ensure you get the best experience on our website.