get( 'Version' ) ); // Enqueue theme stylesheet. wp_enqueue_style( 'spearhead_blocks-style' ); } endif; add_action( 'wp_enqueue_scripts', 'spearhead_blocks_styles' ); require get_template_directory() . '/inc/fonts/custom-fonts.php'; function spearhead_blocks_the_excerpt( $excerpt ) { $audio_block = ''; if ( has_block( 'audio' ) ) { $post = get_post(); $blocks = parse_blocks( $post->post_content ); foreach ( $blocks as $block ) { if ( 'core/audio' === $block['blockName'] ) { $audio_block .= '