• Hello,

    I would like to know how to minify my dynamic stylesheet style.php from child theme.

    Is it possible to minify such PHP CSS files?

    In my case it’s not working.

    Best regards
    Manuel

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can’t do this. You would need it to be a .css file

    Out of curiosity, so your dynamic stylesheet style.php generates and outputs css when someone calls it? Just curious if you are inlining the output into the generating page or something else.

    Thread Starter Manuel

    (@marowi)

    You can’t do this. You would need it to be a .css file

    Ok, thanks for the information.

    I thought W3 Total Cache could handle PHP files with content type text/css header parameter as CSS files.

    header("Content-type: text/css; charset: UTF-8");

    Just curious if you are inlining the output into the generating page or something else.

    It was inline CSS but I changed it into a static file, because of the smaller source code.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to minify style.php?’ is closed to new replies.