When we release upgrades template files will change and you will have to reapply all your changes again (that's if you can remember where they all are). If you keep your changes in a separate Custom CSS file you'll have no issues upgrading.
Re: Add external CSS file without hacking index.php
Posted 11 years 6 months ago
just as an addition ...
yes Finly's tut is still valid.
There may be good reasons for still doing this for example if you want to use php conditions to load css ... writing your own gantry feature is a good way to do this.
For most people the custom css file Igor mentioned is enough.
Re: Add external CSS file without hacking index.php
Posted 11 years 6 months ago
Igor, I am well versed on how to add custom css from 'within' the template structure, ie [TEMPLATE]-custom.css in the 'css' folder. In fact, on the Google Groups for the Gantry Framework,
groups.google.com/forum/?fromgroups=#!fo...ork-for-joomla-users
, I have been helping people going on for two years since I dedicated on the Gantry Platform.
My issue is I have a client that wants to embed an external script which has a LINK code that needs to be in the HEAD area. I 'prefer' not to 'hack' (code) this directly into the 'index.php' file and was wondering how I could use the 'custom' sub-folder to add this link. This is to ensure that any future updates would not overwrite the changes that might be made. If I alter the index.php, there is a possibility that it might get overwritten.