Home › Forums › General Issues › PHP as CSS with ACF field › Reply To: PHP as CSS with ACF field
You cannot do this because nothing in WP is loaded for the CSS file.
You need to use admin_ajax.php to load a dynamic CSS file.
https://bappi-d-great.com/how-to-write-dynamic-css-in-a-php-file-in-wordpress/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.