get('Version') ); wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/assets/css/font-awesome/css/all.css', [], '6.0' ); wp_enqueue_style('dashicons'); } add_action('wp_enqueue_scripts', 'bizvera_styles'); // enqueue dashicons add_action('enqueue_block_assets', function (): void { wp_enqueue_style('dashicons'); }); function bizvera_excerpt_length( $length ) { if ( is_admin() ) { return $length; } return 20; } add_filter( 'excerpt_length', 'bizvera_excerpt_length' ); // add block patterns require get_template_directory() . '/inc/block-patterns.php'; /** * Register block styles. */ if (! function_exists('bizvera_block_styles')) : /** * Register custom block styles * * @since bizverae * @return void */ function bizvera_block_styles() { register_block_style( 'core/paragraph', array( 'name' => 'admin-icon', 'label' => __('Admin Icon', 'bizvera'), /* * Styles for the custom Arrow icon style of the Details block */ 'inline_style' => ' .is-style-admin-icon:before { content: "\f110"; font-family: "dashicons"; } .is-style-admin-icon span{ display: none; }', ) ); } endif; add_action('init', 'bizvera_block_styles');