Jump to content

CSS file not included when CCC is activated


gkom

Recommended Posts

Hello,

 

When I turn on CCC for CSS files, the CSS file for a module I have written myself doesn't get included.
The CSS file is added by the module as usual. 

$this->context->controller->addCSS($this->_path.'modulename.css', 'all');

When CCC is off, it's added in the <head> and everything works.

Does anybody know what might be causing this?

Link to comment
Share on other sites

hello

this problem can be related to cache.

by default, when you use ccc for css files your store use "compiled" version of all css files, and this file is located in your theme directory in cache subfolder

 

try to clear it, then generate new minified file, will see what's going on then

Link to comment
Share on other sites

  • 4 months later...

hello

this problem can be related to cache.

by default, when you use ccc for css files your store use "compiled" version of all css files, and this file is located in your theme directory in cache subfolder

 

try to clear it, then generate new minified file, will see what's going on then

 

Hello. Exactly the same problem at my shop. After deleting cache files from directory cache in theme subfolder problem still exist. 

 

I will appreciate some help.

Link to comment
Share on other sites

I just solved this problem.

 

It was just caused by css marker error in one of css module files. Without ccc compile this error may be unnoticed. But after compile, when all css files are in one - cached file, this error can cause, that browser will not recognize all css code after it.

 

So the solution is to carefully check css code.

Edited by elektrodesign.pl (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...