Support

Account

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' );