100, 'width' => 400, 'flex-height' => true, 'flex-width' => true, 'header-text' => array('site-title', 'site-description'), )); add_theme_support('custom-header', array( 'width' => 1200, 'height' => 600, 'flex-width' => true, 'flex-height' => true, 'header-text' => false, )); add_theme_support('custom-background', array( 'default-color' => 'ffffff', 'default-image' => '', )); 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('align-wide'); //navigation menus register_nav_menus(array( 'primary' => __('Primary Menu', 'beanheaven'), 'footer' => __('Footer Menu', 'beanheaven'), )); } add_action('after_setup_theme', 'beanheaven_theme_setup'); function beanheaven_enqueue_assets() { //styles wp_enqueue_style('theme-style', get_stylesheet_uri()); wp_enqueue_style('responsive-style', get_template_directory_uri() . '/responsive.css', array(), '1.0', 'all'); //scripts wp_enqueue_script('jquery'); // Ensure jQuery is loaded wp_enqueue_script('bootstrap-js', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js', array('jquery'), null, true); wp_enqueue_script('beanheaven-header-script', get_template_directory_uri() . '/js/header-script.js', array(), null, true); wp_enqueue_script('beanheaven-footer-script', get_template_directory_uri() . '/js/footer-script.js', array(), null, true); wp_enqueue_script('beanheaven-index-script', get_template_directory_uri() . '/js/index.js', array('jquery'), null, true); } add_action('wp_enqueue_scripts', 'beanheaven_enqueue_assets'); //comment function beanheaven_enqueue_comment_reply() { if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'beanheaven_enqueue_comment_reply'); function beanheaven_register_block_styles() { register_block_style( 'core/image', array( 'name' => 'rounded', 'label' => __('Rounded', 'beanheaven'), ) ); } add_action('init', 'beanheaven_register_block_styles'); function beanheaven_register_block_patterns() { register_block_pattern_category( 'custom-patterns', array('label' => __('Custom Patterns', 'beanheaven')) ); } add_action('init', 'beanheaven_register_block_patterns'); add_editor_style('editor-style.css'); ?>