kowal.info

Custom Header Links

Composer kowal/module-customheaderlinks · Version 1.0.27

Product page

Custom Header Links — kowal.co

Description

Adds header links with custom labels, icons and display order to the storefront.

For whom

For merchants adding shortcuts to contact details, delivery information or service pages in the store header.

Features

  • Set the visible label and destination for each link.
  • Assign links to alignment zones and order them within a zone.
  • Display a configured CMS block when the link list is empty.

Installation

From the Magento root, with Composer access to the Kowal package, run

composer require kowal/module-customheaderlinks
bin/magento module:enable Kowal_CustomHeaderLinks
bin/magento setup:upgrade
bin/magento cache:clean

Configuration

In store configuration, open Kowal → Custom Header Links → Linki and add a row to Lista linków. Enter the customer-facing text in Anchor and the destination in Link. Choose the alignment zone and the order within that zone. Scroll the table horizontally to reach icon and appearance options.

Under Wygląd, set the shared font size and colour. Legacy CMS Block displays an existing CMS block when the link list is empty.

Requirements / notes

The standard Magento layout uses header.panel. For a Hyvä view, follow the adapter instructions linked below. Custom Header Links Hyvä

FAQ

Why did my legacy CMS block disappear after adding the first link?

The module uses the CMS block as a fallback for an empty list. Check the configured link rows in the current scope.

Verify the installation

Add two links to the same zone, save the configuration and refresh the configuration and full-page caches. Open the relevant store view, check the order and follow both links. In the standard Magento layout the bar is inserted into the header.panel container.

Components included in Custom Header Links