Home › Forums › Gutenberg › Gutenberg blocks not loading in child theme › Reply To: Gutenberg blocks not loading in child theme
Haha some serious ACF rubber duck debugging here but I hope it might help others if admins keep the thread.
Add a new loading point in child theme’s functions.php
that points to parent theme’s acf-json
folder (get_template_directory()
):
function child_theme_acf_json_load_point( $paths ) {
// Remove the original path (optional).
unset($paths[0]);
// Append the new path and return it.
$paths[] = get_template_directory() . '/acf-json';
return $paths;
}
add_filter( 'acf/settings/load_json', 'child_theme_acf_json_load_point' );
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.