Skip to main content
Topic: Custom.css not called from SSI (Read 2069 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Custom.css not called from SSI

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.

Re: Custom.css not called from SSI

Reply #1

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
Last Edit: March 24, 2014, 04:23:56 pm by emanuele
Bugs creator.
Features destroyer.
Template killer.

Re: Custom.css not called from SSI

Reply #2

Hi Emanuele,

:)  OK, I am in the dark about this custom.css file. When would I use something like that?


Re: Custom.css not called from SSI

Reply #4

Thanks again!  I now have a better grasp on the matter.

 :)

 

Re: Custom.css not called from SSI

Reply #5

Just edited in the change and confirmed the SSI page is now loading the custom.css.  Thanks.