Accordion styles
The look of the questions on FAQ pages is set in Configuration, tab Template. The FAQ module has the same options in its own Style tab.
Choose a style
Accordion Style has 14 values:
| Style | Look |
|---|---|
| Default Bootstrap | The plain Bootstrap 5 accordion of your template. The other style options have no effect. |
| Minimal | Thin lines between the questions, no boxes |
| Modern | Rounded cards with a light shadow. The open question takes the main colour. |
| Corporate | Boxes with a thin grey border. The open question takes the main colour. |
| Gradient | Question bars with a colour gradient |
| Material Design | Cards with shadows, in the style of Material Design |
| Glass | Light, semi-transparent boxes |
| Glassmorphism | Frosted glass boxes with a blur |
| Neumorphism | Soft raised boxes with light and dark shadows |
| Dark | Dark boxes with light text |
| Outline | Boxes with a coloured border and no fill. The open question takes the main colour. |
| Shadow | Boxes with a shadow that grows on hover |
| Flat | Flat bars without shadows. A coloured bar on the left marks the open question. |
| Custom | Your own borders, padding, shadow, colours and font sizes |
The style applies to all FAQ pages. The single question page always uses the default Bootstrap look.
Colours
For all styles except Default Bootstrap and Custom:
| Option | What it does |
|---|---|
| Primary Color | Replaces the main colour of the style |
| Secondary Color | Replaces the background or second colour of the style |
Leave them empty to keep the colours of the style.
Behaviour
| Option | Default | What it does |
|---|---|---|
| Enable Animation | Yes | Smooth opening and closing, and a turning icon |
| Expand First Question | No | Opens the first answer when the page loads. Menu items and categories can override it, see Category options. |
| Hover Effect | Yes | Highlights a question under the mouse pointer |
Icons
| Option | Default | What it does |
|---|---|---|
| Expand Icon | fas fa-plus | The icon of a closed question, at the side of the bar |
| Collapse Icon | fas fa-minus | The icon of an open question |
| Icon Position | Right | Left or Right of the question text |
| Choose icon | fas fa-angle-down | The default icon in front of questions, see below |
Expand Icon, Collapse Icon and Icon Position show for all styles except Default Bootstrap, which keeps Bootstrap's own arrow.
The icon in front of a question is the question's own Choose icon. Questions without one use the Choose icon of their category (tab Questions Options). In 6.1.12 the global Choose icon is only used for categories that were never saved: once you save a category with an empty Choose icon, its questions without an icon show no icon. Set the icon on each category to be sure.
Click an icon field to pick an icon from the list, or type a Font Awesome class such as fas fa-circle-question.
Custom style
With Accordion Style set to Custom, these options appear:
| Option | Default | What it does |
|---|---|---|
| Border Width | 1 | The border width in pixels |
| Border Color | #dee2e6 | The border colour |
| Border Radius | 4 | The corner radius in pixels |
| Header Padding | 1rem 1.25rem | The space inside the question bar, as CSS padding |
| Body Padding | 1rem 1.25rem | The space inside the answer, as CSS padding |
| Shadow Effect | None | None, Small, Medium or Large |
| Title Font Size | empty | The font size of the question, in pixels. Enter a number only. |
| Text Font Size | empty | The font size of the answer, in pixels |
| Text Color | empty | The colour of the answer text |
| Text Background Color | empty | The background of the answer |
| Title Color | empty | The colour of the question text |
| Title Background Color | empty | The background of the question bar |
A menu item can change the font sizes and colours for its own page on its Template tab, see Menu items. These menu item values only take effect with the Custom style.
Custom CSS
Custom CSS at the end of the Template tab is added to every JoomFAQs page. Use it for small changes, for example:
#joomfaqs .accordion-button { font-weight: 600; }
The FAQ module has its own Custom CSS field.