Q Card Docs
Modules

Hero

Hero templates used across Q Card and Q Mastercard pages.

Hero

Description

Hero modules are the primary header sections at the top of pages. Variants support image or text layouts, feature lists, search, and a shared card product toggle.

How to edit

  1. Go to Elementor → Editor → Templates.
  2. Search for Hero (or a word from the specific template name below).
  3. Edit copy, images, CTAs, and feature items directly in the template, or on the page if the hero was inserted dynamically.
  4. For toggle heroes, keep the shared card toggle component intact — only change the labels and links that are meant to be content.

Variants

TemplateWhat it is
CK – Hero – HomepageThe standard homepage hero
CK – Hero – Homepage – Carousel BackgroundThe homepage hero with a carousel background
CK – Hero – Image – FeaturesImage hero with a feature list
CK – Hero – Image – TextImage hero with a heading and body copy
CK – Hero – Image – Text – LogoImage hero with a logo alongside the copy. Used on deal pages
CK – Hero – Image – ToggleImage hero with the product toggle
CK – Hero – TextText-only hero
CK – Hero – Text – ToggleText hero with the product toggle
CK – Hero – Text – SearchText hero with a search field
CK – Hero – Merchant logoTemplate to store the merchant logo used in the logo hero variant
CK – Hero – Card Toggle ComponentThe shared toggle used by the toggle heroes

Homepage hero

For the homepage, both homepage hero templates are added to the page and one is always hidden using the dynamic visibility settings in Elementor. Switch between them in the editor depending on whether you want the carousel background or the static background.

On the carousel background version, update both the background images and the mobile carousel images when the imagery changes.

You may also need to check the colours of the elements in this hero so they stay readable. Those colours are controlled by custom CSS.

Classes

Classes you add yourself

ClassWhat it does
ck-toggle-heroAdd to hero sections with a product toggle. Turns the background grey when Q Card is selected. For Q Mastercard, set the background in the editor.
ck-hero--dark-textMakes the hero text dark. Use it if you change the hero background to yellow or cream, so the copy stays readable.
ck-hero--lightMakes the hero background grey and makes the text dark.
ck-hero-lifestyle-imageAdd this class to the image in hero when using a lifestyle image. It changes the navbar's background and makes sure the image expands to the edge of the screen.

Structure classes

Primary classes used by the hero component:

ClassWhat it's for
ck-heroMain wrapper
ck-homepageHomepage variant, used alongside ck-hero
ck-hero__innerInner container
ck-hero__badgeBadge above the heading
ck-hero__titleHeading
ck-hero__textBody copy
ck-hero__eyebrowSmall label above the heading
ck-hero__featureA single feature row
ck-hero__feature-iconIcon beside a feature
ck-hero__cvpA single value proposition
ck-hero__cvp-iconValue proposition icon
ck-hero__cvp-titleValue proposition title
ck-hero__cvp-textValue proposition text
ck-hero__cvps-sliderValue proposition carousel
ck-hero__search-formSearch field in the search hero
ck-hero__toggleProduct toggle
ck-hero__toggle-containerContainer around the toggle
ck-hero__toggle-btnA single toggle button
ck-hero__buttonsContainer for the call-to-action buttons
ck-hero__image-containerHero image
ck-hero__breadcrumbsBreadcrumb row
ck-hero__breadcrumbs-iconIcon between breadcrumb items

IDs

These mark the active state of the toggle:

IDApplies on
ck-qcard-toggleQ Card pages (body[data-page-type="qcard"])
ck-qmastercard-toggleQ Mastercard pages (body[data-page-type="qmastercard"])

Styling is done through a combination of the built-in page builder options as well as custom CSS where needed.

On this page