Skip to main content

FAQ · Tabs

Questions grouped by topic: a centered row of tabs with a line that slides under the open one, and an accordion of questions in each tab.

FAQ · Tabs

See it live: FAQ · Tabs on fancybricks.co — the live preview, and the button that copies it.

Or open the preview on its own — narrow the window to see it on a phone — and in dark mode.

In the builder

Preview on the front end. Scripts don't run inside the builder, so here you only see the layout: the line under the open tab does not slide here (that needs the script); the open tab shows its own line instead. Save and open the page to see the full result.

Structure​

This is what the Bricks Structure panel shows after you paste the template. Component instances say which component they are.

FAQ tabs
Container
FAQ column
Intro (FBK Intro)
Tabs
Tab menu
Tab · Orders
Tab · Name
Tab · Shipping
Tab · Name
Tab · Returns
Tab · Name
Tab content
Pane · Orders
FAQ · Orders (FBK Accordion)
Item · Can I change my order after I place it? (FBK Accordion item)
Item · Do you make pieces to order? (FBK Accordion item)
Item · Which payment methods do you take? (FBK Accordion item)
Item · Do you sell gift cards? (FBK Accordion item)
Pane · Shipping
FAQ · Shipping (FBK Accordion)
Item · How long does delivery take? (FBK Accordion item)
Item · Do you ship abroad? (FBK Accordion item)
Item · How do you pack the pieces? (FBK Accordion item)
Item · What if something arrives broken? (FBK Accordion item)
Pane · Returns
FAQ · Returns (FBK Accordion)
Item · Can I return something I don't like? (FBK Accordion item)
Item · Who pays for the return? (FBK Accordion item)
Item · Can I exchange a piece for another glaze (FBK Accordion item)
Item · Are pieces made to order returnable? (FBK Accordion item)
Button (FBK Button)
Tabs · sliding line (JS, optional)

The template also pastes a dashed note above the section, with the short version of this page. It only shows inside the builder, never on the published page — see Builder notes.

How to adjust​

Every step is the same move: pick the element in the Structure panel, change its Properties.

Where are those panels?

How to adjust a template shows every one of them in a screenshot of the real builder: the Structure and Properties panels, the classes on an element, a component's style families and the field where a CSS variable goes.

The classes this element carries, in the Bricks panel.

The classes this element carries, in the Bricks panel.

This template's own component, with its Style group open.

This template's own component, with its Style group open.

  1. Paste the template in Bricks first — see Copy and paste.
  2. Select Intro (FBK Intro) › Properties: Eyebrow, Hide eyebrow, Title, Title level, Lead, Hide lead · Style group: Eyebrow style, Highlight, Title size, Accent line · Layout group: Alignment, Layout, Background, Spacing · Motion group: Reveal in slider.
  3. Select FAQ · Orders, FAQ · Shipping, FAQ · Returns (FBK Accordion) › Properties: Open the first item, Several open at once, FAQ schema · Style group: Style, Open item accent, Open title color, Hover effect, Title color on hover, Background · Icon group: Icon, Look, Tone, Shape, Size, Hover effect, Icon position · Layout group: Numbers, Columns · Autoplay group: Time per item, Autoplay on phones.
  4. Select Item · Can I change my order after I place it?, Item · Do you make pieces to order?, Item · Which payment methods do you take? (+9 more) (FBK Accordion item) › Properties: Title, Text, Hide text, Tag, Tag text · More group: Title level, Icon.
  5. Select Button (FBK Button) › Properties: Text, Link, Tone, Shadow on hover · Icon group: Icon, Icon position · Style group: Style, Size, Width, Hover effect.
  6. Select Tabs › one tab = a title and its pane, in the same order: duplicate both to add one.

Requirements​

  • Code execution. Needs "Execute code" enabled for the role in Bricks → Settings → Custom code, or the JS block shows as plain text instead of running.

What each requirement is, and how to set it up once for the whole site: Requirements.

Finish by hand​

  • Each tab is a Tab title in the Tab menu and a Pane in the Tab content, in the same order. To add a topic, duplicate both. Each pane holds an FBK Accordion: change its items or duplicate one to add a question.
  • FAQ schema is on in the first accordion only: Bricks writes one FAQPage per accordion and search engines flag duplicates. Keep it on in one accordion per page (the one with the questions that matter most) and off in the others.
  • The tab row is the house one (fbk-tabs: weight, colors, the line under the row and the 2 px line that slides under the open tab, made by the code block Tabs · sliding line; delete it and the open tab draws its own line). Centering and width: .fbk-faqtabs__menu.
  • The panes fade out and in with the class fbk-tabs--motion on the Tabs element; remove it for an instant switch.

On phones​

The template is designed desktop first, the Bricks default, and only changes at the two widths the library uses:

  • 991px and below — .fbk-accordion, .fbk-intro.
  • 767px and below — .fbk-section.

Those changes live in Bricks' own breakpoint fields, so you edit them where you always do: pick the breakpoint in the toolbar and the same fields follow.

Careful with the classes shared by the whole library (fbk-section, fbk-intro, the component classes): a change there shows up in every template that uses them.

If your site's breakpoints are set up mobile first, copy the mobile-first variant of the template instead — see Copy and paste.

Accessibility​

In this template, keyboard focus is visible on every interactive piece; movement is cut back when the visitor's system asks for less motion; the state screen readers need is already set (aria-hidden, aria-label).

What is checked on every template, and what depends on your own palette: Accessibility.

Dark mode​

With your site in dark mode this section turns dark too — the class fbk-section--auto-dark on the section does it. Remove the class to keep it light.

Its background is a modifier on the section, so you can swap it for any of the ones the template is checked with: fbk-section--light, fbk-section--soft, fbk-section--dark.

How the library follows your site's color scheme: Dark mode and preview.