'Custom Pattern', // Pattern title 'description' => 'Description of the custom pattern.', // Pattern description 'categories' => array( 'text' ), // Pattern categories 'content' => '', // Block markup for the pattern ) ); } add_action( 'init', 'brightline_register_block_patterns' ); function brightline_register_block_styles() { // Register block style for a specific block register_block_style( 'core/paragraph', // Block name array( 'name' => 'brightline-custom-style', // Style name 'label' => 'Brightline Custom Style', // Style label 'style_handle' => 'brightline-custom-style-css', // Handle for the style's CSS file ) ); // Register block style for multiple blocks register_block_style( array( 'core/heading', 'core/quote' ), // Array of block names array( 'name' => 'brightline-custom-style', // Style name 'label' => 'Brightline Custom Style', // Style label 'style_handle' => 'brightline-custom-style-css', // Handle for the style's CSS file ) ); } add_action( 'init', 'brightline_register_block_styles' ); function brightline_enqueue_styles() { wp_enqueue_style( 'brightline-custom-style-css', // Handle for the style's CSS file get_theme_file_uri( 'path/to/your/css/file.css' ), // Replace with the actual path to your CSS file array(), // Dependencies '1.0', // Version number 'all' // Media type ); } add_action( 'wp_enqueue_scripts', 'brightline_enqueue_styles' ); function brightline_add_editor_styles() { add_editor_style( 'path/to/your/editor-styles.css' ); // Replace with the actual path to your editor styles CSS file } add_action( 'admin_init', 'brightline_add_editor_styles' ); function brightline_custom_header_setup() { $args = array( 'width' => 1200, // Specify the maximum width of the header image. 'height' => 600, // Specify the maximum height of the header image. 'default-image' => get_template_directory_uri() . '/images/header-image.jpg', // Specify the default header image URL. 'uploads' => true, // Enable uploading of custom header images. // Add additional arguments as per your requirements. ); add_theme_support( 'custom-header', $args ); } add_action( 'after_setup_theme', 'brightline_custom_header_setup' ); function brightline_custom_background_setup() { $args = array( 'default-color' => 'ffffff', // Specify the default background color. 'default-image' => get_template_directory_uri() . '/images/background-image.jpg', // Specify the default background image URL. 'default-repeat' => 'repeat', // Specify the default background repeat style. Options: repeat, repeat-x, repeat-y, no-repeat. 'default-position-x' => 'left', // Specify the default horizontal background position. Options: left, center, right. 'default-position-y' => 'top', // Specify the default vertical background position. Options: top, center, bottom. 'default-size' => 'auto', // Specify the default background size. Options: auto, cover, contain. 'default-attachment' => 'scroll', // Specify the default background attachment. Options: scroll, fixed. 'wp-head-callback' => '_custom_background_cb', // Specify the callback function for adding the background CSS to the head. 'admin-head-callback' => '', // Specify the callback function for adding the background CSS to the admin head. 'admin-preview-callback' => '', // Specify the callback function for displaying the background preview in the admin. ); add_theme_support( 'custom-background', $args ); } add_action( 'after_setup_theme', 'brightline_custom_background_setup' ); function brightline_add_html5_support() { $args = array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', 'navigation-widgets', ); add_theme_support( 'html5', $args ); } add_action( 'after_setup_theme', 'brightline_add_html5_support' ); function brightline_add_responsive_embeds_support() { add_theme_support( 'responsive-embeds' ); } add_action( 'after_setup_theme', 'brightline_add_responsive_embeds_support' ); function brightline_add_align_wide_support() { add_theme_support( 'align-wide' ); } add_action( 'after_setup_theme', 'brightline_add_align_wide_support' ); function brightline_add_block_styles_support() { add_theme_support( 'wp-block-styles' ); } add_action( 'after_setup_theme', 'brightline_add_block_styles_support' ); add_theme_support( 'wp-block-styles' ); function brightline_add_title_tag_support() { add_theme_support( 'title-tag' ); } add_action( 'after_setup_theme', 'brightline_add_title_tag_support' ); function brightline_load_theme_textdomain() { load_theme_textdomain( 'your-theme-textdomain', get_template_directory() . '/languages' ); } add_action( 'after_setup_theme', 'brightline_load_theme_textdomain' ); function brightline_theme_setup(){ add_theme_support('custom-logo'); add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_theme_support('automatic-feed-links'); register_nav_menus(array( 'wp_main_menu' => 'Primary Menu', )); register_nav_menus(array( 'wp_footer_menu' => 'Social Menu' )); } add_action('after_setup_theme', 'brightline_theme_setup'); function brightline_scripts(){ wp_enqueue_style('brightline-style', get_stylesheet_uri(), array(),'1.0', 'all'); wp_enqueue_style('load-google-fonts', 'https://fonts.googleapis.com/css2?family=Oswald&family=Poppins:wght@500&display=swap', array(), null); } add_action( 'wp_enqueue_scripts', 'brightline_scripts'); function brightline_widgets_init(){ register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'brightline' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer wideget area.', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'brightline' ), 'id' => 'second-footer-widget-area', 'description' => __( 'the second footer widget area', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'brightline' ), 'id' => 'third-footer-widget-area', 'description' => __( 'the Third footer widget Area', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'brightline' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'the fourh footer widget Area', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Fifth Footer Widget Area', 'brightline' ), 'id' => 'fifth-footer-widget-area', 'description' => __( 'the fifth widget Area', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Sixth Footer Widget Area', 'brightline' ), 'id' => 'sixth-footer-widget-area', 'description' => __( 'the Sixth widget Area', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Gallery Front Image1', 'brightline' ), 'id' => 'gallery-front-image1', 'description' => __( 'Fornt gallery is first image', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Gallery Front Image2', 'brightline' ), 'id' => 'gallery-front-image2', 'description' => __( 'Fornt gallery is second image', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Gallery Front Image3', 'brightline' ), 'id' => 'gallery-front-image3', 'description' => __( 'Fornt gallery is third image', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Gallery Front Image4', 'brightline' ), 'id' => 'gallery-front-image4', 'description' => __( 'Fornt gallery is fourth image', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Gallery Front Image5', 'brightline' ), 'id' => 'gallery-front-image5', 'description' => __( 'Fornt gallery is fifth image', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'sidebar', 'brightline' ), 'id' => 'sidebar', 'description' => __( 'sidebar', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'about', 'brightline' ), 'id' => 'about', 'description' => __( 'about', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'blogpost', 'brightline' ), 'id' => 'blogpost', 'description' => __( 'blogpost', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'frontpost', 'brightline' ), 'id' => 'frontpost', 'description' => __( 'frontpost', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'gallerypage', 'brightline' ), 'id' => 'gallerypage', 'description' => __( 'gallerypage', 'brightline' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); } add_action( 'widgets_init', 'brightline_widgets_init' ); ?>