Home › Forums › ACF PRO › ACF 5 PRO Wonky Admin Styles › Reply To: ACF 5 PRO Wonky Admin Styles
Thanks Elliot. To help clarify, I’ve added this to functions.php to allow for various environments, then included the plugin/options as described in the docs.
add_filter('acf/settings/dir', function( $dir ){
return get_template_directory_uri() . '/advanced-custom-fields-pro/';
});
add_filter('acf/settings/path', function( $path ){
return get_theme_root() . '/' . get_template() . '/advanced-custom-fields-pro/';
});
add_filter('acf/settings/show_admin', function( $path ){
return true; // Set false to hide UI in admin
});
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.