upgrade to 1.4.8 causes CSS to fail on page
Permalink Browser Info Environment
I am losing the css on the page if I add the cart block to the page. I don't see any errors, the cart works fine but the theme css does not load, page is all white with no styling.
I am in concrete 5.6.1.2 with 1.4.8
I tried a clean install of concrete with the same result. Using basic themes in c5 all with same problem.
any ideas?
dustin
I am in concrete 5.6.1.2 with 1.4.8
I tried a clean install of concrete with the same result. Using basic themes in c5 all with same problem.
any ideas?
dustin
Type: | Discussion |
---|---|
Status: | New |
Looks like you are clearing the cache when the block is added to the page, but C5 has stored the css in a cache file and is trying to load it into the page, but is getting - error page does not exist - so no theme css can load.
Looks like a C5 issue with caching css files, the quick fix in theme settings is:
in your theme header change the calls to your css like this
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
to using getThemePath() instead like so
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/main.css" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/typography.css" />
in your theme header change the calls to your css like this
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('main.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" />
to using getThemePath() instead like so
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/main.css" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getThemePath()?>/typography.css" />
Hi
Great that you explained it in detail. Clearing the cache is essential as to get the latest result of the page. So if you don't clear the cache the changes to the css will eventually act up if the cache expires.
JZ
Great that you explained it in detail. Clearing the cache is essential as to get the latest result of the page. So if you don't clear the cache the changes to the css will eventually act up if the cache expires.
JZ