Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt November 11, 2024
DChiuch Posted December 8, 2014 Posted December 8, 2014 What is the preferred way to add CSS rules with a plugin?I can insert inline CSS with a theme hook into the globalTemplate, but I think inline CSS is discouraged in IPS4. Any better way to do it?
DChiuch Posted December 8, 2014 Author Posted December 8, 2014 Never mind, I just discovered the relevant part on https://www.invisionpower.com/support/guides/_/advanced-and-developers/4-0-developer-documentation/plugins-r283Feel free to close this.
DChiuch Posted December 8, 2014 Author Posted December 8, 2014 Actually... I've put a CSS file in my plugins\[plugin name]\dev\css directory, but it doesn't seem to be being included on my website. Do I have to do anything else?Edit: Right, you have to download the plugin, uninstall it and reinstall it before any CSS files take effect. Sorry for this mess of a topic.
Farcaster II Posted December 8, 2014 Posted December 8, 2014 Hm, it should add the css files automatically if you have IN_DEV active
DChiuch Posted December 8, 2014 Author Posted December 8, 2014 That would explain it, I have to turn IN_DEV off when I want to look at the front-end since it breaks my front-end at the moment.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.