'betra-fancy-paragraph', 'label' => __( 'Betra Fancy Paragraph', 'betra' ), 'inline_style' => '.wp-block-paragraph.is-style-fancy-paragraph { font-style: italic; color: #205bf2; }', ) ); } add_action( 'init', 'betra_register_block_styles' ); /** * Register custom block patterns. */ function betra_register_block_patterns() { if ( function_exists( 'register_block_pattern' ) ) { register_block_pattern( 'betra/two-column-text', array( 'title' => __( 'Two Column Text', 'betra' ), 'description' => _x( 'A simple two-column layout with text.', 'Block pattern description', 'betra' ), 'content' => "\n
\n
\n

" . __( 'Column one content goes here.', 'betra' ) . "

\n
\n

" . __( 'Column two content goes here.', 'betra' ) . "

", 'categories' => array( 'text' ), 'keywords' => array( 'columns', 'text' ), ) ); } } add_action( 'init', 'betra_register_block_patterns' ); /** * Your code goes below. */ function betra_theme_custom_header_setup() { $args = array( 'default-text-color' => '000', // Default text color 'width' => 1000, // Width of the header image 'height' => 250, // Height of the header image 'flex-height' => true, // Enable flexible height for header image 'flex-width' => true, // Enable flexible width for header image ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'betra_theme_custom_header_setup' ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'wp-block-styles' ); add_theme_support( 'responsive-embeds' ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption' ) ); add_theme_support( 'custom-logo' ); add_theme_support( 'custom-background' ); add_theme_support( 'align-wide' ); add_theme_support( 'post-thumbnails' ); ?>