Navigation
The header, its popups, and the mobile menu.
Navigation
Description
The navigation is the header on every page: the logo, the top-level links, the search button, the apply button, and the popups that open underneath them. On smaller screens the same header becomes the mobile menu.
It is built from one header template plus a separate template for each popup, and the link lists inside the popups come from WordPress menus rather than from the templates.
How to edit
The header and its top-level links
- Go to Elementor → Theme Builder and open
Header main navbar – 2024. You can also double-click the header from any page in the Elementor editor. - Edit the logo, the top-level link labels, the search button, and the apply button directly.
- Save, then check a page.
Inside a popup
- Go to Elementor → Theme Builder and search for
Menu Popup. There is one template per popup. - Open the popup you want and edit its headings, buttons, and featured content.
- To change the links themselves, edit the WordPress menu instead — see Menus.
- Save, then check the popup on desktop and mobile.
Leave the existing IDs and classes in place while editing. The header's behaviour — hiding on scroll, the logo swap, the search popup, the mobile menu — is driven by them, so removing one breaks that behaviour rather than simply changing how it looks.
Variants
| Template | What it is |
|---|---|
Header main navbar – 2024 | The header itself |
CK – Q Mastercard Menu Popup | The Q Mastercard popup |
CK – Q Card Menu Popup | The Q Card popup |
Login Menu Popup – Desktop | The login popup |
CK – Search Menu Popup | The search popup |
CK – Mobile Menu | The mobile menu |
Popups
Three popups open from the header links, and each takes its links from a WordPress menu:
| Popup | What it holds |
|---|---|
| Q Mastercard and Q Card | Two grouped lists each: Manage your card and Ways to pay |
| Login | A single list |
The search popup works differently. It holds the search field and a set of popular search terms, which are content in its own template rather than a menu.
See Menus for which menu belongs to which popup.
How the header behaves
- It hides on the way down and returns on the way up. Scrolling down slides the header out of view, and scrolling back up brings it in with a white background and a soft shadow.
- The logo swaps between a light and a dark version so that it stays legible. The dark logo is used on Q Card pages, over light heroes, while a popup or the search is open, and once you scroll back up. The light logo is used over dark heroes.
- The header colours follow the page. Link and icon colours change for Q Card and Q Mastercard pages and over light or dark heroes, which is why the same header can look different from one page to the next.
- On mobile it becomes the mobile menu, opened and closed with the menu button. Choosing a product opens its links as a second panel over the first.
The mobile menu reuses the same popup content, so a change to one of the popup menus shows up on mobile as well. The login link is hidden on the narrowest screens.
Classes
Primary IDs and classes used by the navigation.
Header
| Class or ID | What it's for |
|---|---|
header-menu-container | Header wrapper that hides and shows on scroll |
scrolling-up / scrolling-down | Applied while scrolling, and what drives the hide and show |
ck-light-logo / ck-dark-logo | The two logo versions |
#nav-apply-now | Apply button |
Search
| Class or ID | What it's for |
|---|---|
#navbar-search | Search button in the header |
#search-popup | The search popup |
search-popup-active | Applied while the search popup is open |
ck-popular-search-term | A popular search term inside the search popup |
Popups
| Class or ID | What it's for |
|---|---|
q-mastercard-menu-popup-desktop-wrap | The Q Mastercard popup wrapper |
q-card-menu-popup-desktop-wrap | The Q Card popup wrapper |
login-menu-popup-desktop-wrap | The login popup wrapper |
navigation-hidden-overlay | Click-away area that closes an open popup |
Mobile
| Class or ID | What it's for |
|---|---|
#mobile-menu, #mobile-menu-open, #mobile-menu-close | The mobile menu and its open and close buttons |
mobile-menu-open | Applied while the mobile menu is open |
mobile-menu-main / mobile-menu-submenu | The first panel and the product panel |
ck-hide-login-link | Hides the login link on the narrowest screens |
Styling is done through a combination of the built-in page builder options as well as custom CSS where needed.