Jump to content

[Plugin development] Preferred way to add CSS with a plugin?


DChiuch

Recommended Posts

Posted

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?

Posted

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.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...