'fancy-paragraph', 'label' => __('Fancy Paragraph', 'bigshop'), 'inline_style' => '.wp-block-paragraph.is-style-fancy-paragraph { font-style: italic; font-weight: bold; }', ) ); } add_action('init', 'bigshop_register_block_styles'); /** * Register Block Pattern **/ function bigshop_register_block_patterns() { if ( function_exists( 'register_block_pattern' ) ) { register_block_pattern( 'bigshop/my-custom-pattern', array( 'title' => __( 'My Custom Pattern', 'bigshop' ), 'description' => _x( 'A custom block pattern for BigShop Theme', 'Block pattern description', 'bigshop' ), 'content' => "
" . __( 'Add your custom content here', 'bigshop' ) . "
", ) ); } } add_action( 'init', 'bigshop_register_block_patterns' ); // Enable responsive embeds. function bigshop_theme_support() { add_theme_support('responsive-embeds'); } add_action('after_setup_theme', 'bigshop_theme_support'); function bigshop_add_editor_styles() { add_editor_style('editor-style.css'); } add_action('admin_init', 'bigshop_add_editor_styles');