• Resolved khaotic

    (@khaotic)


    Hello,
    Is there any posibility to cache a CSS located in PHP file? I have a theme with the custom_css.php file which I applied my code, but Autooptimize didn’t cache it. It’s really important to me, because there are over 2k lines so caching will improve the speed of the page I guess.

    hope help you soon

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Frank Goossens

    (@futtta)

    AO cannot optimize code in .php files I’m afraid, but you could migrate your code from your theme’s “custom css” to WordPress core’s “additional CSS” (Appearance -> Customize -> Additional CSS”, in which case WordPress will add the CSS inline where AO can pick it up.

    hope this helps,
    frank

    Thread Starter khaotic

    (@khaotic)

    Thanks, now it works great ??

    Plugin Author Frank Goossens

    (@futtta)

    you’re welcome @khatoic, feel free to leave a raving review here! ??

    enjoy your friday!
    frank

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Caching CSS in a PHP file’ is closed to new replies.