View Settings: Custom Code
Why? It’s easier than workarounds.
Previously, we may have suggested adding CSS to Custom Content widgets, to the WordPress Customizer, or in a HTML block above where you embed a View. Now, add it to the View configuration directly.
- Custom CSS contents are output after the
gravityview_default_styleCSS file is rendered in the header. The CSS is added using WordPress’
gravityview-fe-viewscript is printed in the footer during the
wp_print_footer_scriptsaction. The JS is added using WordPress’