156 Posts
Hableur
7 years ago
2
Topic

Hello,

I would to use a css file called style.css with seb_list template. I have placed style.css in seb_list/css/ but the file is not loaded. In fact, I think I had to modify seb_list/index.php whith something like that :

// Add CSS file

$doc = JFactory::getDocument();

$doc->addStyleSheet( JURI::root( true ).'/templates/'.$cck->template. '/css/'.'style.css' );

but it doesn't work with new version of seb_list...

Thanks for an idea !

Get a Book for SEBLOD
4229 Posts
Kadministrator
7 years ago
1
Level 1

Any time you upgrade a template it will overwrite your changes. To avoid that you can use position override (with just the above added) or use CSS code field with css @import.

156 Posts
Hableur
7 years ago
0
Level 2

Thanks, good idea. I use a php field for linking with the css file.

Get a VIP membership