This tutorial shows how to configure the Hadron theme to your liking. The theme can be configured by file or using the Admin Panel.
The Hadron theme offers a variety of options to customize the theme to your liking. The options contain the default Quark settings + some additional options by Hadron.
To configure the theme, navigate in the Admin Panel to Themes
and select the Hadron
theme.
Here you can find the theme options, grouped by Hadron & Quark settings.
The Hadron settings contain the following options:
The Quark settings contain the following options:
All the above settings can also be configured by file. The configuration file is located in user/config/themes/hadron.yaml
. The file contains the following settings by default:
grid-size: grid-lg # Grid size of the theme: grid-lg, grid-md, grid-sm
blog-page: /blog # URL to the blog page
dropdown:
enabled: true # Show dropdown menu in header navigation
header-fixed: true # Enable fixed (sticky) header
header-animated: true # Enable animated header on scroll
header-dark: false # Enable dark header
header-transparent: false # Enable transparent header
sticky-footer: true # Enable sticky footer (footer always at the bottom)
spectre:
exp: false # Enable experimental CSS features
icons: false # Enable icons CSS
production-mode: true # Enable production mode (use minimized CSS files)
# URL to the H5P library
h5pembedrootpath: 'https://h5p.org/h5p/embed/'
# Default hero classes for the blog page
blog_page_hero_classes: 'text-light title-h1h2 overlay-dark-gradient hero-large parallax'
# Custom Favicon
favicon:
# Path to the favicon
user/themes/hadron/images/favicon.svg:
name: favicon.svg # Name of the file
full_path: favicon.svg # Full path to the file
type: image/svg+xml # File type
size: 4868 # File size
path: user/themes/hadron/images/favicon.svg
# Custom Logo for the header navigation
custom_logo:
user/themes/hadron/images/logo/logo.svg:
name: logo.svg
full_path: logo.svg
type: image/svg+xml
size: 4868
path: user/themes/hadron/images/logo/logo.svg
# Custom Logo for the mobile navigation
custom_logo_mobile:
user/themes/hadron/images/logo/logo.svg:
name: logo.svg
full_path: logo.svg
type: image/svg+xml
size: 4868
path: user/themes/hadron/images/logo/logo.svg