Css not loading
Permalink
Hi,
A strange issue with my theme on linehttp://view.tellthem.be/balnearis/fr/... (don't have problem on local) :
/balnearis/index.php/tools/css/themes/balnearis/typography.css is a blank page..
Cache cleared, disabled, theme ok, pretty url actived or not, i'm lost :-)
A strange issue with my theme on linehttp://view.tellthem.be/balnearis/fr/... (don't have problem on local) :
/balnearis/index.php/tools/css/themes/balnearis/typography.css is a blank page..
Cache cleared, disabled, theme ok, pretty url actived or not, i'm lost :-)
Hi,
Thanks for your quick reply !
I've tested that without result... Is a issue from C5 ?
Thanks for your quick reply !
I've tested that without result... Is a issue from C5 ?
How are you including your css file? Can you paste the line from your header.php please?
Thanks,
Jon
Thanks,
Jon
I never figured it out. I believe it was an issue with C5 and the PHP configuration.
check out this thread for other thoughts:
http://www.concrete5.org/community/forums/installation/upgrade-to-5...
check out this thread for other thoughts:
http://www.concrete5.org/community/forums/installation/upgrade-to-5...
With pleasure :-)
I've insered like the C5 recommandation :
I've insered like the C5 recommandation :
<link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getStyleSheet('typography.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getStyleSheet('style.css')?>" />
Make sure that your server supports php short tags!
Yes, look at the generated url :
/balnearis/index.php/tools/css/themes/balnearis/typography.css
/balnearis/index.php/tools/css/themes/balnearis/typography.css
In my site you find:
<link href="/index.php/tools/css/themes/revolutium/style.css" type="text/css" rel="stylesheet">
<link href="/index.php/tools/css/themes/revolutium/typography.css" type="text/css" rel="stylesheet">
In your you have a directory before index.php, could it be possible that your links are pointing to the wrong folder?
<link href="/index.php/tools/css/themes/revolutium/style.css" type="text/css" rel="stylesheet">
<link href="/index.php/tools/css/themes/revolutium/typography.css" type="text/css" rel="stylesheet">
In your you have a directory before index.php, could it be possible that your links are pointing to the wrong folder?
In local i have
and all work fine.. A server problem..??
<link rel="stylesheet" media="screen" type="text/css" href="/_concrete_instalations/balnearis/index.php/tools/css/themes/balnearis/typography.css" /> <link rel="stylesheet" media="screen" type="text/css" href="/_concrete_instalations/balnearis/index.php/tools/css/themes/balnearis/style.css" />
and all work fine.. A server problem..??
your stylesheets must reside at the root level!
Assuming you have your site in the themes folder and stylesheets you should have:
structure like this:
themes/yourtheme/style.css
themes/yourtheme/typography.css
your code should be:
Assuming you have your site in the themes folder and stylesheets you should have:
structure like this:
themes/yourtheme/style.css
themes/yourtheme/typography.css
your code should be:
That's Exactly what i have :-D
the last answer from me is the RESULT, not the CODE.. The code is above
the last answer from me is the RESULT, not the CODE.. The code is above
I'm affraid that I am lost here, never came across with such issue!
I have seen this issue - never did figure out what caused it, however, I may be able to offer a fix for you.
Try this:
After this, you may need to rejig any references to images within the stylesheets, but this should at least get your stylesheets included.
Jon
Try this:
<link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getThemePath().'/typography.css'?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?=$this->getThemePath().'/style.css'?>" />
After this, you may need to rejig any references to images within the stylesheets, but this should at least get your stylesheets included.
Jon
Yes thanks, i know that fix. But i went to use the C5 recommendation..
A guy from core is welcome here :-)
A guy from core is welcome here :-)
Make sure you don't have any quotation marks whatsoever in the CSS. Concrete5 can't parse them. If you must have the quotation marks, you should link the CSS by using
instead of
So, your link would look like this:
Hope it helps!
<?php echo $this->getThemePath() ?>
instead of
<?php print $this->getStyleSheet('yourstylesheet.css');
So, your link would look like this:
<link rel="stylesheet" type="text/css" href="<?php echo $this->getThemePath() ?>/yourstylesheet.css" />
Hope it helps!
<?php Loader::element('header_required'); ?>
and see if that helps.
I've encountered this problem one other time and it effected the default themes as well - I never figured it out. The only solution was to install an older version of C5.