'#FFFFFF', ) ); // custom header colour add_theme_support( 'custom-header', array( 'default-text-color' => '#000000', ) ); add_theme_support( "title-tag" ) ; // Add default posts and comments RSS feed links to head. add_theme_support('automatic-feed-links'); // Add support for Block Styles. add_theme_support('wp-block-styles'); // Add support for full and wide align images. add_theme_support('align-wide'); // Add support for editor styles. add_theme_support('editor-styles'); // Add support for responsive embedded content. add_theme_support('responsive-embeds'); // Add support for custom line height controls. add_theme_support('custom-line-height'); // Add support for experimental link color control. add_theme_support('experimental-link-color'); // Add support for experimental cover block spacing. add_theme_support('custom-spacing'); add_theme_support('title-tag'); $logo_width = 100; $logo_height = 100; add_theme_support( 'custom-logo', array( 'height' => $logo_height, 'width' => $logo_width, 'flex-width' => true, 'flex-height' => true, 'unlink-homepage-logo' => true, ) ); //image size add_image_size( 'single', 1200); // register menus register_nav_menus( array( 'primary' => esc_html__('Primary', 'calico'), 'footer' => esc_html__('Footer', 'calico'), 'socials' => esc_html__('Socials', 'calico'), ) ); } add_action('after_setup_theme', 'calico_theme_setup'); function calico_widgets_init() { register_sidebar( array( 'name' => __( 'Calcio', 'calico' ), 'id' => 'calico', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Index', 'calico' ), 'id' => 'index', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'calico_widgets_init' ); // link images function calico_post_image_html( $html, $post_id, $post_image_id ) { $html = '' . $html . ''; return $html; } // Customizer additions. require get_template_directory() . '/template-functions/customizer-colours.php'; // Custom colour functions require get_template_directory() . '/template-functions/hero.php'; require get_template_directory() . '/classes/class-one-customize-hero.php'; new CO_Customize();