Try something like that:
templates->shaper_helix_ii->index.php
->addLess('master', 'template')
->addcss('demo', 'template')
->addLess( 'presets', 'presets/'.$this->helix->Preset() );
What's wrong this code. i can't understand.
Joomla Stack Exchange is a question and answer site for Joomla! administrators, users, developers and designers. It only takes a minute to sign up.
Sign up to join this communityAdding custom css and javascript files:
->addLess('master', 'template')
->addLess('presets', 'presets/'.$this->helix->Preset())
->addJs('main.js,demo.js')
->addCSS('demo.css,template.css');
I suggest using a module instead of inserting it on a template since template updates usually will break your previous changes. http://extensions.joomla.org/extensions/extension/core-enhancements/coding-a-scripts-integration/flexi-custom-code that module will do the trick for you.
If you download the plugin "JQuery Easy" , if you go to Advanced Settings, you can include or exclude any css or js files you want and you can also choose what pages to exclude from the plugin to work! Pretty simple :)