How to use it
Blockquote
- Add Blockquote from the Kiln category.
- In the Quote group, write the Quote. Optionally set Typography, Left accent width, Left accent color, Quote padding, Quote background and Quote border (all sides and corners; use it or the left accent, not both).
- In the Quote mark group, choose a Style: None, Typographic “ (the default) or Icon. For an icon, pick it in Icon. Set Position (Above the quote, Left of the quote or Behind the quote), Size, Color and Opacity. Behind the quote, the mark sits under the text, large, and shows through a Quote background; move it with Offset from the start and Offset from the top.
- In the Author & source group, fill in Author and Source (work, role, company). Add a Source link to link the source. Choose a Prefix (a dash, or None), and set Typography (the whole caption), Author typography, Source typography, Source link color (switch to the hover state for its hover color) and Gap above.
Bricks' own Theme Styles > Typography > Blockquote settings (margin, padding, border, typography) also reach
the quote part, because it is a <blockquote>.
The markup is a <figure> with a <blockquote> and a <figcaption>. The source sits in a <cite> element. The
Source link is also written to the blockquote's cite attribute.
Divider with text
- Add Divider with text.
- Choose a Direction: Horizontal (the default) or Vertical. A vertical divider is 8em tall unless you set a Height (smaller or larger) or a parent stretches it.
- Write the Text (the default is "or") and choose a Text position: Center, Start or End.
- Set the text Typography and the Gap around text.
- Under Line, set the Style, Thickness and Color, and tick Fade the outer ends for lines that fade out away from the text.
- For Start or End, set Short side width (start / end position).
- Under Icon, pick an Icon and its Icon position: before the text, after it, or instead of it. Set Icon size and Icon color.
- Under Label box, give the text a Background, Padding and Border, for a pill or a tag look.
Start and End follow the reading direction, so they flip on right-to-left sites. The divider is marked as a separator with the text as its label.
Logo with text
- Add Logo with text.
- Choose an Image and set the Image width and Image height. Optionally add an Image in dark mode, shown while Bricks' dark mode is on, and an Image in a sticky header, shown once a sticky header has scrolled. The sticky image wins over the dark one, as in Bricks' own Logo element.
- For a logo at the top of the page, set Image loading to Eager (above the fold) and tick High fetch priority, so the browser fetches it first.
- Fill in the Title and Tagline. They default to the dynamic tags
{site_title}and{site_tagline}. Set Title typography and Tagline typography. To show only the image on phones, switch to a phone breakpoint and tick Hide the text; Hide the tagline drops just the tagline. Hidden text leaves the page visually but stays readable by screen readers, so the home link keeps its name. - Set the Layout: Image before text or Image above text, and the Gap.
- The element links to the home page. Set a Link to point elsewhere, or tick No link.
If you leave Image empty, the element uses the site logo set in WordPress, then the Customizer logo if a theme set one, then the site icon.
Where it appears in Bricks
- The Elements panel, in the Kiln category.
- All controls are on the Content tab. Blockquote groups them as Quote, Quote mark and Author & source. Controls that set a style take breakpoints and states, like Bricks' own.
- Theme Styles > Elements: Blockquote (Kiln), Divider with text (Kiln) and Logo with text (Kiln). Style every instance on the site in one place: typography, the quote box and mark, the divider's line, icon and label box, the logo's image size and gap. Settings on an element still win over the theme style.
How it works with your own styles
Kiln's default styles are wrapped in :where(), so they add no specificity. Anything you set in Bricks wins,
including settings on global elements and components. The rules that switch Logo with text to its dark-mode and
sticky-header images keep their specificity, so a reset such as img { display: block } can't show all the images
at once. The stylesheet loads only on pages that use one of the
three elements.
Limits
- Text fields (Quote, Author, Source, Text, Title, Tagline) take dynamic data and a short list of inline HTML:
br,em,strong,b,i,spananda. Other tags are removed. - The defaults, such as the sample quote, the author "Charles Eames" and the divider text "or", fill in when you add the element. If you clear a field later, it stays empty.
- Bricks has no global logo setting, so pick an Image in Logo with text for a predictable result.
- With a Title or Tagline, the logo image has empty alt text, because the text names the link. With neither, the image's alt text is the site name. The dark-mode and sticky-header images get the same alt text.
- The dark-mode image loads lazily: a browser fetches it only when dark mode is on. The sticky-header image loads with the page, so the header never shows an empty logo when it first sticks. They switch on Bricks' own signals: its dark mode (including its Auto setting, which follows the visitor's system) and its sticky header's scrolling state.
Settings
None. Turn the module on in Bricks > Kiln (it is on by default).
Requirements
Bricks 2.4 or newer.