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 :-)

sebastienj
 
cannonf700 replied on at Permalink Reply
cannonf700
Try loading your .css before your:
<?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.
sebastienj replied on at Permalink Reply
sebastienj
Hi,
Thanks for your quick reply !
I've tested that without result... Is a issue from C5 ?
jbx replied on at Permalink Reply
jbx
How are you including your css file? Can you paste the line from your header.php please?

Thanks,

Jon
cannonf700 replied on at Permalink Reply
cannonf700
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...
sebastienj replied on at Permalink Reply
sebastienj
With pleasure :-)

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')?>" />
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
Make sure that your server supports php short tags!
sebastienj replied on at Permalink Reply
sebastienj
Yes, look at the generated url :
/balnearis/index.php/tools/css/themes/balnearis/typography.css
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
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?
sebastienj replied on at Permalink Reply
sebastienj
In local i have
<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..??
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
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:
<link rel="stylesheet" type="text/css" href="<?php  print $this->getStyleSheet('style.css'); ?>" />
<link rel="stylesheet" type="text/css" href="<?php  print $this->getStyleSheet('typography.css'); ?>" />
sebastienj replied on at Permalink Reply
sebastienj
That's Exactly what i have :-D

the last answer from me is the RESULT, not the CODE.. The code is above
PauloCarvalhoDesign replied on at Permalink Reply
PauloCarvalhoDesign
I'm affraid that I am lost here, never came across with such issue!
jbx replied on at Permalink Reply
jbx
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:
<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
sebastienj replied on at Permalink Reply
sebastienj
Yes thanks, i know that fix. But i went to use the C5 recommendation..

A guy from core is welcome here :-)
boomgraphics replied on at Permalink Reply
boomgraphics
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
<?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!