Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
ReyDev Posted December 26, 2020 Posted December 26, 2020 I've hooked a theme in my application, And I'm going to add a css file to this theme. I've added the css file ( here : myapp > dev > css ), but it doesn't attach automatically to the theme like plugins. How can I do it?
Solution bfarber Posted December 28, 2020 Solution Posted December 28, 2020 \IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'css-file-name.css', 'myapp', 'front' ) );
Recommended Posts