Filter: gk/gravityview/theme/force-active
Force the theme stylesheet to enqueue regardless of the View's saved theme setting.
Surfaces that need the theme stack during a transient render state (e.g. a preview/iframe context that renders a View before its saved theme flag is known) hook this to return true. Without the override, the theme stylesheet is missing during preview and every rule keyed off the container's .gv-themed marker stays inert (most visibly the grid rules in _card-grid.scss that produce the column layout). Mirrored by the same filter in gv_container_class(), which stamps the marker class on the View container, so the marker and the stylesheet stay in lockstep.
Parameters
| Name | Type | Description |
|---|---|---|
| $force_active | bool | Default false. |
| $view | \GV\View|null | The View being rendered, or null. |
Since
- TBD: TBD
Source
- Defined in
src/Frontend/Frontend.phpat line 1975 - Defined in
src/API/class-api.phpat line 188