peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

CSS Crush with Wordpress setup #19

Closed bentographics closed 12 years ago

bentographics commented 12 years ago

Is there any tutorial now to make this work in a Wordpress environment either under MAMP and on a live server.

I have it working locally under MAMP with this setup:

<?php /* CSSCrush */ //$csscrush_path = TEMPLATEPATH ; require_once (TEMPLATEPATH . '/css/csscrush/CssCrush.php'); $compiled_file = CssCrush::file(TEMPLATEPATH . '/style.css'); ?>

After that I am linking to the parsed file with a static link:

Not sure how to output the correct with with this: <?php echo $compiled_file; ?>

It usually has an incorrect href path.

However my main problem is that it currently does not work on the live server with the above setup. There is a PHP error with the above script and the page stays blank, parsing stops exact here above code block.

Any hints would be greatly appreciated.

bentographics commented 12 years ago

[Strange, github shortens my issue text. continues below: ]

After that I am linking to the parsed file with a static link:

Not sure how to output the correct with with this: <?php echo $compiled_file; ?>

It usually has an incorrect href path.

However my main problem is that it currently does not work on the live server with the above setup. There is a PHP error with the above script and the page stays blank, parsing stops exact here above code block.

Any hints would be greatly appreciated.

bentographics commented 12 years ago

My issue is shortend by Github for no apparent reason.

Here is the full text: http://screencast.com/t/aM6TYfi4

peteboere commented 12 years ago

Have you tried using the tag method? It generates the link tag html for you.

echo CssCrush::tag(TEMPLATEPATH . '/style.css');

bentographics commented 12 years ago

Thanks for the tip, but that does not work either unfortunately.

bentographics commented 12 years ago

Do you need to see any templates or is there anything else I can try? Thank you.