esc_html__( 'Main Sidebar', 'theme' ), 'id' => 'main-sidebar', 'description' => esc_html__( 'Add widgets here.', 'theme' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'dummy_theme_widgets_init' ); /** * Enqueue scripts and styles. */ function dummy_theme_scripts() { wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/assets/css/bootstrap.min.css' ); wp_enqueue_style( 'dummy-theme-style', get_stylesheet_uri() ); wp_enqueue_script( 'slim', 'https://code.jquery.com/jquery-3.3.1.slim.min.js', array( 'jquery' ), '30122018', true ); wp_enqueue_script( 'popper', 'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js', array( 'jquery' ), '30122018', true ); wp_enqueue_script( 'bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array(), '30122018', true ); } add_action( 'wp_enqueue_scripts', 'dummy_theme_scripts' ); if ( function_exists( 'add_theme_support' ) ) { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 56, 56, true ); // Normal post thumbnails add_image_size( 'sidebar', 50, 50, true ); // Sidebar thumbnail add_image_size( 'blog', 619, 300, true ); // Blog thumbnail }