Installation
Installing the particle on your website is a really simple process. You just need to follow the below instructions depending on the platform you are on.
Installing on Joomla
- Download the headline-particle.zip file.
- UNZIP it on your computer. You will find three files - headline.html.twig, headline.yaml and _headline.scss.
- Copy the headline.html.twig and headline.yaml files to
root/templates/TEMPLATE_DIR/custom/particles(if theparticlesfolder does not exist, you will need to create it manually). Basically, this step is the same as the one described in the Creating a New Particle chapter in the Gantry 5 Documentation. - Copy the _headline.scss file to
root/templates/TEMPLATE_DIR/custom/scss(if thescssfolder does not exists, you will need to create it manually). - Add the following code in your custom.scss file. If the custom.scss file does not exists, you will need to create it manually. Also, make sure your custom.scss file has the
@import "dependencies";code at the very top. Basically, this step is the same as the one described in the Adding a Custom Style Sheet chapter in the Gantry 5 Documentation.// Headline Particle @import "headline";
Installing on Wordpress
- Download the headline-particle.zip file.
- UNZIP it on your computer. You will find three files - headline.html.twig, headline.yaml and _headline.scss.
- Copy the headline.html.twig and headline.yaml files to
root/wp-content/themes/TEMPLATE_DIR/custom/particles(if theparticlesfolder does not exist, you will need to create it manually). Basically, this step is the same as the one described in the Creating a New Particle chapter in the Gantry 5 Documentation. - Copy the _headline.scss file to
root/wp-content/themes/TEMPLATE_DIR/custom/scss(if thescssfolder does not exists, you will need to create it manually). - Add the following code in your custom.scss file. If the custom.scss file does not exists, you will need to create it manually. Also, make sure your custom.scss file has the
@import "dependencies";code at the very top. Basically, this step is the same as the one described in the Adding a Custom Style Sheet chapter in the Gantry 5 Documentation.// Headline Particle @import "headline";
Installing on Grav CMS
- Download the headline-particle.zip file.
- UNZIP it on your computer. You will find three files - headline.html.twig, headline.yaml and _headline.scss.
- Copy the headline.html.twig and headline.yaml files to
root/user/data/gantry5/themes/THEME_DIR/particles/(if theparticlesfolder does not exist, you will need to create it manually). Basically, this step is the same as the one described in the Creating a New Particle chapter in the Gantry 5 Documentation. - Copy the _headline.scss file to
root/user/data/gantry5/themes/THEME_DIR/scss/(if thescssfolder does not exists, you will need to create it manually). - Add the following code in your custom.scss file. If the custom.scss file does not exists, you will need to create it manually. Also, make sure your custom.scss file has the
@import "dependencies";code at the very top. Basically, this step is the same as the one described in the Adding a Custom Style Sheet chapter in the Gantry 5 Documentation.// Headline Particle @import "headline";
Usage
The "Headline" particle displays a heading with a description and pill-shaped buttons. It was developed for the Reborn template, where it is the hero of the Home variations and the call-to-action button in the header. It works in any Gantry 5 template.
Publish it from the "Gantry 5 Particle" module (or add it in the Layout Manager) and configure it:
- Layout - Left, Centered or Split (the title on the left, the description and the buttons on the right).
- Title Tag - H1, H2 or H3.
- Title Size - Normal, Large or Hero.
- Title - HTML is allowed (for example
<br>or<span>). If you leave the title and the description empty, the particle displays only its buttons (handy for a header call-to-action). - Description - the description text.
- Buttons - as many as you like. Each button has a text, link, target, icon, style (Primary, Dark, Outline, White or Text), an "Open in Lightbox" option (for YouTube or Vimeo links), CSS classes and tag attributes.
All particles by nature are really intuitive and easy to use. Also, most of the fields in the particle have a tooltip text that explains what it is about.
Download
You can download all particles from our Download Section.