ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: scripple on March 24, 2014, 03:05:47 am

Title: Custom.css not called from SSI
Post by: scripple on March 24, 2014, 03:05:47 am
Made a custom .css file in a theme variant folder.  It worked as expected on the forum pages.  But calling the same template areas in the ssi program as follows

Code: [Select]
$ssi_layers = array('html','body');

did not include the custom css file.

I know the SSI program could add the custom css file explicitly but I think the expected behavior by default should be that SSI renders the theme the same way the forum does.
Title: Re: Custom.css not called from SSI
Post by: emanuele on March 24, 2014, 04:00:49 pm
Actually...I think there are two problems with the custom.css code:
1) it should go into the if ($default_loaded === false) block,
2) it is not loaded if there are no variants.

I think the code should look like:

ETA: that won't work...

ETA2: removed what I posted before because was badly broken, this is a better one:
https://github.com/emanuele45/Dialogo/commit/caee1a4925e91ba0f25aef2874760a1fcb52c723
Title: Re: Custom.css not called from SSI
Post by: AaronB on March 24, 2014, 06:26:44 pm
Hi Emanuele,

:)  OK, I am in the dark about this custom.css file. When would I use something like that?
Title: Re: Custom.css not called from SSI
Post by: emanuele on March 24, 2014, 06:43:47 pm
I'll let @TE "speak" about it from this topic:
http://www.elkarte.net/community/index.php?topic=1103.0

O:-)
Title: Re: Custom.css not called from SSI
Post by: AaronB on March 24, 2014, 07:15:57 pm
Thanks again!  I now have a better grasp on the matter.

 :)
Title: Re: Custom.css not called from SSI
Post by: scripple on March 25, 2014, 12:11:21 am
Just edited in the change and confirmed the SSI page is now loading the custom.css.  Thanks.