Custom Header Links for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0
Description / Custom Header Links for Magento 2
MAGENTO 2 · HEADER · LINKS · STORE VIEW
Change header links from the Magento panel.
Kowal Custom Header Links
Direct customers to promotions, delivery, contact and important store sections. Manage order, icons and the basic appearance of links without editing code for each content change.
Link list · Icons and HTML attributes · CMS fallback
HOW IT WORKS IN PRACTICE
01 · Add bar items
Enter text, a URL and an optional icon.
02 · Organize navigation
Set order, attributes and appearance.
03 · Publish for the store view
Check the header and refresh the necessary cache.
How does your store benefit?
Explore the module's features, use cases, and settings.
Explore the module
Kowal Custom Header Links is a Magento 2 module for managing additional links in the store's top bar without the need to modify code every time the content changes. The solution gives the administrator full control over the link layout from the admin panel, allowing the header section to respond more quickly to sales, campaign, and customer communication needs.
The module was designed for stores that need a flexible and repeatable way to publish links such as promotions, brand zones, loyalty programs, delivery information, customer account, contact, landing pages, or seasonal messages.
Key benefits
- Dynamic management of the link list in Magento configuration.
- Ability to set the display order of each item.
- Support for link content, URL address, CSS class,
titleandrel. - Ability to add an icon on the left side of the link.
- Appearance configuration through font size and color.
- Fallback to a legacy mode based on a single CMS Block for custom implementations.
- Greater independence for the e-commerce team without involving a developer for simple header changes.
Business use cases
- Highlighting current promotions and special offers.
- Building quick paths to the most important store sections.
- Emphasizing links to partner programs, outlet, or new arrivals.
- Publishing shortcuts to customer service, FAQ, delivery, and returns.
- Standardizing communication across multiple store views while keeping separate configuration.
Why this module
The standard header in Magento often requires additional frontend changes or the use of static CMS blocks. This module simplifies that area by turning it into a configurable administrative component. As a result, changes are faster, less risky, and easier to maintain.
Target audience
The module is a good choice for:
- stores expanding promotional and seasonal sales,
- marketing teams that frequently change link visibility,
- Magento implementations requiring a simple fallback to an older rendering method,
- projects where the header serves as an important navigation and communication element.
Configuration and link fields
Stores → Configuration → kowal → Custom Header Links provides the item list and appearance settings for Default, Website and Store View. Each row defines order, Anchor, Link, CSS Class, Title, Rel and an icon.
An empty URL displays text instead of a link. The shared font size accepts CSS values, and the color uses HEX. Icons are saved in pub/media/customheaderlinks/icons.
List priority and header adaptation
In the current code, a valid dynamic list takes priority. Legacy CMS Block is a fallback when the list produces no displayable items; selecting a block does not replace a nonempty list.
The layout places the component in header.panel. The theme must render this area or its position needs adapting. After changes, check the header on desktop and mobile and refresh configuration and page cache.
Installation via Composer
Package kowal/module-customheaderlinks, module Kowal_CustomHeaderLinks. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment in accordance with the store's deployment process.
From configuration to results
1. Add bar items
Enter text, a URL and an optional icon.
2. Organize navigation
Set order, attributes and appearance.
3. Publish for the store view
Check the header and refresh the necessary cache.
Shortcuts for a seasonal campaign
Add links to the promotion and delivery information, set their order and assign icons. In another Store View you can prepare localized content and URLs.
After the campaign, change the list in configuration. An item without a URL can serve as a short text message.
Organize your store's header shortcuts
Want to tailor the module to your store? Ask about implementing Kowal Custom Header Links and discuss the configuration or any extensions you need.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Module Installation Instructions
Installation and Configuration
Requirements
- Magento 2
- enabled module
Kowal_Base - access to the Magento administration panel
Installation via Composer
Composer License:
- Username:
<YOUR E-MAIL> - Token:
<YOUR-TOKEN>
- Add the package repository if it is not already configured:
You will receive the access details for the Composer repository, the customer's email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with your account email address and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.store
composer config http-basic.repo.kowal.store "TWOJ_EMAIL_KLIENTA" "TWOJ_TOKEN"
composer require kowal/module-customheaderlinks
php bin/magento module:enable Kowal_CustomHeaderLinks
php bin/magento setup:upgrade
php bin/magento cache:flush
Configuration location
After installation, module configuration is available in the panel:
Stores > Configuration > kowal > Custom Header Links
Configuring the dynamic link list
The sectionLinkicontains a dynamic form where each row corresponds to one item displayed in the header.
Fields available in each row
Kolejność- a number controlling the item's position.Anchor- text visible to the user.Link- URL; when empty, the item is rendered as text.CSS Class- additional classes for styling the item.Title- the value of the attributetitle.Rel- a multiselect for the attributerelFill innofollowerrors,noopenererrors,noreferrer.Ikona- upload an image file displayed to the left of the link.
Appearance configuration
The sectionWyglądcontains settings shared by the whole list:
Wielkość czcionki- numeric values or CSS units are supported, for example14errors,14pxerrors,0.875remerrors,90%.Kolor czcionki- a text field with a HEX color picker.
Legacy mode
FieldLegacy CMS Blockpreserves the older rendering method in stores with a custom implementation.
How it works:
- if
Legacy CMS Blockis set, the frontend renders the specified CMS block, - if
Legacy CMS Blockis empty, the frontend uses the new dynamic link list.
This allows switching the module to a fallback without migrating existing content to the new format.
Deployment notes
- Icons are saved in the directory
pub/media/customheaderlinks/icons. - Configuration works at the scope
defaulterrors,websiteandstore view. - After configuration changes, refresh the cache if the store uses aggressive frontend caching.
Recommended launch process
- Configure the dynamic link list in a test environment.
- Check link order, styles and behavior on desktop and mobile.
- If the store has an older custom header integration, use
Legacy CMS Blockas a transitional or permanent mode.