50, // Adjust based on your design 'width' => 50, // Adjust based on your design 'flex-height' => true, 'flex-width' => true, )); // Add theme support for post thumbnails add_theme_support("post-thumbnails"); add_theme_support("wp-block-styles"); add_theme_support("responsive-embeds"); add_theme_support("html5", array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption')); // Add theme support for post tags add_theme_support('post_tags'); add_theme_support("custom-header", array( 'width' => 1200, 'height' => 280, 'default-image' => get_template_directory_uri() . '/images/default-header.jpg', 'uploads' => true, 'header-text' => false, )); add_theme_support("align-wide"); function businesshut_register_block_styles() { // Register block styles register_block_style( 'core/paragraph', array( 'name' => 'your-custom-style', 'label' => __('Your Custom Style', 'businesshut'), ) ); } add_action('init', 'businesshut_register_block_styles'); function businesshut_register_block_patterns() { // Register block patterns register_block_pattern( 'your-theme/custom-pattern', array( 'title' => __('Custom Pattern', 'businesshut'), 'content' => '', 'categories' => array('text'), 'description' => __('A custom block pattern.', 'businesshut'), ) ); } add_action('init', 'businesshut_register_block_patterns'); function businesshut_add_editor_styles() { add_editor_style('editor-styles.css'); } add_action('admin_init', 'businesshut_add_editor_styles'); function enqueue_comment_reply_script() { if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'enqueue_comment_reply_script'); require(get_template_directory() . '/includes/businesshut-nav-walker.php'); register_nav_menus(array( 'primary' => __('Main Menu', 'businesshut'), )); add_action( 'after_setup_theme', 'theme_functions' ); function theme_functions() { add_theme_support( 'title-tag' ); } function theme_widgets_init() { register_sidebar(array( 'name' => esc_html__('Footer Widget Area 1', 'businesshut'), 'id' => 'footer-widget-1', 'description' => esc_html__('Add widgets here to appear in your footer.', 'businesshut'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Widget Area 2', 'businesshut'), 'id' => 'footer-widget-2', 'description' => esc_html__('Add widgets here to appear in your footer.', 'businesshut'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Widget Area 3', 'businesshut'), 'id' => 'footer-widget-3', 'description' => esc_html__('Add widgets here to appear in your footer.', 'businesshut'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name' => esc_html__('Footer Widget Area 4', 'businesshut'), 'id' => 'footer-widget-4', 'description' => esc_html__('Add widgets here to appear in your footer.', 'businesshut'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'theme_widgets_init'); $args = array( 'before' => '', 'link_before' => '', 'link_after' => '', 'next_or_number' => 'number', 'separator' => ' ', 'nextpagelink' => __('Next page', 'businesshut'), 'previouspagelink' => __('Previous page', 'businesshut'), 'pagelink' => '%', 'echo' => 1 ); wp_link_pages($args); // Add support for automatic feed links add_theme_support('automatic-feed-links'); add_theme_support('custom-background'); function theme_customizer_settings($wp_customize) { // Add a custom section $wp_customize->add_section('background_options', array( 'title' => __('Background Options', 'businesshut'), 'priority' => 200, )); // Add a setting for background color $wp_customize->add_setting('theme_background_color', array( 'default' => '#ffffff', 'sanitize_callback' => 'sanitize_hex_color', )); // Add a control for background color $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'theme_background_color', array( 'label' => __('Background Color', 'businesshut'), 'section' => 'background_options', 'settings' => 'theme_background_color', ))); // Typography Settings Section $wp_customize->add_section('typography_settings', array( 'title' => __('Typography Settings', 'businesshut'), 'priority' => 201, )); // Body Font Size Setting $wp_customize->add_setting('theme_body_font_size', array( 'default' => '16px', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('theme_body_font_size', array( 'type' => 'text', 'label' => __('Body Font Size', 'businesshut'), 'section' => 'typography_settings', 'settings' => 'theme_body_font_size', )); // Body Font Color Setting $wp_customize->add_setting('theme_body_font_color', array( 'default' => '#333333', 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, 'theme_body_font_color', array( 'label' => __('Body Font Color', 'businesshut'), 'section' => 'typography_settings', 'settings' => 'theme_body_font_color', ))); // Individual Heading Font Settings (h1 to h6) for ($i = 1; $i <= 6; $i++) { // Heading Font Size Setting $wp_customize->add_setting("theme_h{$i}_font_size", array( 'default' => '24px', // Adjust default as needed 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control("theme_h{$i}_font_size", array( 'type' => 'text', 'label' => sprintf(__('Heading %d Font Size', 'businesshut'), $i), 'section' => 'typography_settings', 'settings' => "theme_h{$i}_font_size", )); // Heading Font Color Setting $wp_customize->add_setting("theme_h{$i}_font_color", array( 'default' => '#000000', // Adjust default as needed 'sanitize_callback' => 'sanitize_hex_color', )); $wp_customize->add_control(new WP_Customize_Color_Control($wp_customize, "theme_h{$i}_font_color", array( 'label' => sprintf(__('Heading %d Font Color', 'businesshut'), $i), 'section' => 'typography_settings', 'settings' => "theme_h{$i}_font_color", ))); // Heading Font Weight Setting (dropdown) $wp_customize->add_setting("theme_h{$i}_font_weight", array( 'default' => 'normal', // Adjust default as needed 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control("theme_h{$i}_font_weight", array( 'type' => 'select', 'label' => sprintf(__('Heading %d Font Weight', 'businesshut'), $i), 'section' => 'typography_settings', 'settings' => "theme_h{$i}_font_weight", 'choices' => array( 'normal' => __('Normal', 'businesshut'), 'bold' => __('Bold', 'businesshut'), // Add more font weight options as needed ), )); } // Copyright Settings Section $wp_customize->add_section('copyright_settings', array( 'title' => __('Copyright Settings', 'businesshut'), 'priority' => 202, )); // Copyright Notice Setting $wp_customize->add_setting('theme_copyright_notice', array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', )); $wp_customize->add_control('theme_copyright_notice', array( 'type' => 'text', 'label' => __('Copyright Notice', 'businesshut'), 'section' => 'copyright_settings', 'settings' => 'theme_copyright_notice', )); } add_action('customize_register', 'theme_customizer_settings'); function theme_customize_css() { ?>
  • id="comment-">
    %s says:', 'businesshut'), get_comment_author_link()); ?>
    comment_approved == '0') : ?>
    esc_html__('Reply', 'businesshut'), 'depth' => $depth, 'max_depth' => $args['max_depth'], ) ) ); ?>