Skip to main content

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​

NameTypeDescription
$custom_cssstringThe scoped Custom CSS.
$view\GV\ViewThe View being rendered.

Since​

  • 3.0.0
  • 3.8.0: The CSS is attached to gravityview_view_css_{View ID} instead of gv-theme.

Source​

Defined in src/Frontend/Frontend.php at line 2930