Bricks Boilerplate Documentation
PricingDemo
  • Intro
  • Getting Started
    • Requirements
    • 5 minutes launch ⚡
    • Import into an existing project
  • Basics
    • Inside the package
    • Global Styles
      • General
      • CSS Variables
      • Buttons
      • Utility classes
    • Templates
    • ACF
      • Global topbar
    • Bricks Boilerplate Addon plugin
      • Wishlist
      • Variation swatches
      • Checkout
    • Code snippets
  • Tutorials
    • Blog in 5 minutes
    • Custom Off-canvas cart
    • Off-canvas cart without addon plugin
    • Custom Thank you page
    • Custom Checkout page
    • Custom Cart page
    • My account page
    • Product gallery with thumbnails
    • Custom query for product reviews
  • Advanced
    • Custom slider controls
    • Custom accordions
    • Megamenu
    • GSAP animations
  • Common issues
    • Custom CSS
    • Product galleries
    • Restoring site with WPvivid
Powered by GitBook
On this page
  1. Advanced

Custom accordions

PreviousCustom slider controlsNextMegamenu

Last updated 7 months ago

Bricks Boilerplate comes with a custom accordions that has few extra features comparing to Bricks nestable accordion element.

All the features are controlled via attributes applied to accordion component:

Attribute name
Value
Purpose

bt-expand-first

true/false

Expand first accordion item on page load

bt-expand-all

true/false

Expand all accordions on page load

bt-close-siblings

true/false

Only one accordion open at the same time

bt-header-scroll

number (e.g. 767)/false

Set max. viewport (in px) when to apply scroll to accordion header when it is active. Set false to disable it.

bt-faq-schema

true/false

Enable/turn off FAQ schema