Filter: gk/gravityview/theme/custom-css
Filters the scoped Custom CSS emitted for a themed View.
Runs after placeholder resolution, sanitization, and per-selector scoping, immediately before the CSS is attached to the View's own gravityview_view_css_\{View ID\} handle.
Parameters
| Name | Type | Description |
|---|---|---|
| $custom_css | string | The scoped Custom CSS. |
| $view | \GV\View | The View being rendered. |
Since
- 3.0.0
- 3.8.0: The CSS is attached to
gravityview_view_css_{View ID}instead ofgv-theme.
Source
Defined in src/Frontend/Frontend.php at line 2930