100, 'width' => 100, 'flex-height' => true, 'flex-width' => true)); add_theme_support('custom-header'); add_theme_support('custom-background'); add_theme_support('html5', array('comment-list', 'comment-form', 'search-form', 'gallery', 'caption', 'style', 'script')); add_editor_style('style.css'); register_nav_menus(array('primary' => esc_html__('Primary Menu', 'binary-log'))); } add_action('after_setup_theme', 'binary_log_setup'); function binary_log_scripts() { wp_enqueue_style('binary-log-style', get_stylesheet_uri(), array(), '1.0.1.3'); if (is_singular() && comments_open() && get_option('thread_comments')) { wp_enqueue_script('comment-reply'); } } add_action('wp_enqueue_scripts', 'binary_log_scripts', 999); function binary_log_widgets_init() { register_sidebar(array( 'name' => esc_html__('Sidebar', 'binary-log'), 'id' => 'sidebar-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } add_action('widgets_init', 'binary_log_widgets_init'); function binary_log_customize_register($wp_customize) { $wp_customize->add_section('binary_design', array('title' => 'Design & Home', 'priority' => 20)); $wp_customize->add_setting('binary_home_title', array('default' => 'System Logs', 'sanitize_callback' => 'sanitize_text_field')); $wp_customize->add_control('binary_home_title', array('label' => 'Homepage Headline', 'section' => 'binary_design')); } add_action('customize_register', 'binary_log_customize_register');