![]() |
Best way of adding custom CSS as part of a plugin
I am working on a plugin, and I like the new product/plugin system very much. I just need to add a couple of custom style definitions to the main CSS file, but I wonder how that can be done in the best way. I could just add it to EXTRA or EXTRA2, but then uninstall becomes difficult. Another option is to put it in a template, and load it with misc.php?do=page&template=nameoftemplate, which I also use for my javascript file. Is there an option which I have overlooked?
[edit] The last option does not work, because FireFox doesn't like CSS files with Content-type: text/html. |
I would like to know this too.
Anyone? I'm also wondering why the main CSS is inline and not in an external file. |
Quote:
|
is this a plugin that will enable adding new css selector fields in the style manager? Like this?
Quote:
|
Quote:
chmod 777 should make it writable. |
bump.
Figured out a good way to do this and used it in my new modification https://vborg.vbsupport.ru/showthread.php?t=110401 |
Quote:
|
I'd just use inline CSS personally, or add it to the headinclude template. Not allowing proper CSS addition via plugins is a pretty chronic oversight in my eyes on Jelsoft's part.
|
All times are GMT. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|