0
Welcome Guest! Login
0 items Join Now

adding a custom CSS file to MC

    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    adding a custom CSS file to MC

    Posted 13 years 5 months ago
    • I use Gantry to add a custom CSS style sheet to the site template. Is there a similar way to do that for the admin template (Mission Control).

      If not, is is there a recommended way to add custom CSS (either for the whole admin, or for specific extensions)?
    • Andy Miller's Avatar
    • Andy Miller
    • Preeminent Rocketeer
    • Posts: 9919
    • Thanks: 96
    • Web Kahuna

    Re: adding a custom CSS file to MC

    Posted 13 years 5 months ago
    • generally speaking this is not something that many people do so there's no support for it. There are of course several options:

      1) for extensions specific, you can add an a directory in the overrides/ folder in the missioncontrol template directory. In here you can add an override css file. See the other overrides for naming/samples.

      2) If you want something 'system' wide, the most 'joomla' way is to create a very simple system plugin, that all it does is add your custom stylesheet to the document object. plenty of examples on how to do this. you could even make it so that your plugin took the custom css from a parameter to allow you to modify it on the fly.

      3) you could add it directly to the template's index.php but you will have to be prepared to re-add it after an udpate (not a really advisable solution)
    • Randy Carey's Avatar
    • Randy Carey
    • Rocketeer
    • Posts: 77
    • Thanks: 0
    • web architect, book/magazine author

    Re: adding a custom CSS file to MC

    Posted 13 years 5 months ago
    • Andy, thanks for the suggestion. I opted for the plugin, and all is working well.

Time to create page: 0.094 seconds