tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); // Enable support for Post Thumbnails. add_theme_support( 'post-thumbnails' ); // Declare image sizes. add_image_size( 'biancaa-featured', 660, 330, true ); add_image_size( 'biancaa-featured-big', 800, 370, true ); add_image_size( 'biancaa-featured-full', 960, 370, true ); add_image_size( 'biancaa-slides', 960, 400, true ); add_image_size( 'biancaa-widget', 262, 200, true ); add_image_size( 'biancaa-related', 195, 110, true ); // Register custom navigation menu. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'biancaa' ), 'social' => __( 'Social Menu' , 'biancaa' ), ) ); // Add custom stylesheet file to the TinyMCE visual editor. add_editor_style( array( 'assets/css/editor-style.css' ) ); // Setup the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'biancaa_custom_background_args', array( 'default-color' => 'f2f2f2' ) ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'comment-list', 'search-form', 'comment-form', 'gallery', 'caption' ) ); // Enable theme-layouts extensions. add_theme_support( 'theme-layouts', array( '1c' => __( '1 Column Wide', 'biancaa' ), '1c-narrow' => __( '1 Column Narrow', 'biancaa' ), '2c-l' => __( '2 Columns: Content / Sidebar', 'biancaa' ), '2c-r' => __( '2 Columns: Sidebar / Content', 'biancaa' ) ), array( 'default' => '2c-l' ) ); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); } endif; // biancaa_theme_setup add_action( 'after_setup_theme', 'biancaa_theme_setup' ); /** * Registers sidebars. * * @since 1.0.0 * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function biancaa_register_sidebars() { register_sidebar( array( 'name' => _x( 'Primary', 'sidebar', 'biancaa' ), 'id' => 'primary', 'description' => __( 'The main sidebar.', 'biancaa' ), 'before_widget' => '', 'before_title' => '