Home › Forums › Gutenberg › ACF Blocks in a child theme › Reply To: ACF Blocks in a child theme
OK, so using a newer version of 5.8 (5.8.0-beta4) resulted in the “Blocks” item showing in the location menu, and this way of adding the function for the child theme ensures the block shows up in the list:
if ( ! function_exists( 'acf_register_block' ) ) {
add_action('acf/init', 'register_acf_blocks');
}
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.