rundom-background
Activer un fond de site via la catégorie média “Bannières” de Wordpress.
// Set content width value based on the theme's design if ( ! isset( $content_width ) ) $content_width = 1200; if ( ! function_exists('arriere_plan_theme') ) { // Register Theme Features function arriere_plan_theme() { // Add theme support for Post Formats add_theme_support( 'post-formats', array( 'image' ) ); // Add theme support for Custom Background $background_args = array( 'default-color' => '', 'default-image' => 'images/background/bannieres', 'default-repeat' => 'no-repeat', 'default-position-x' => '', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-background', $background_args ); // Add theme support for Custom Header $header_args = array( 'default-image' => 'http://www.lestoises.ch/', 'width' => 600, 'height' => 200, 'flex-width' => true, 'flex-height' => true, 'uploads' => true, 'random-default' => true, 'header-text' => true, 'default-text-color' => '#fff', 'wp-head-callback' => '', 'admin-head-callback' => '', 'admin-preview-callback' => '', ); add_theme_support( 'custom-header', $header_args ); // Add theme support for HTML5 Semantic Markup add_theme_support( 'html5', array( 'gallery', 'caption' ) ); // Add theme support for document Title tag add_theme_support( 'title-tag' ); // Add theme support for custom CSS in the TinyMCE visual editor add_editor_style( 'style.css' ); // Add theme support for Translation load_theme_textdomain( 'lestoises.ch', get_template_directory() . '/language' ); } // Hook into the 'after_setup_theme' action add_action( 'after_setup_theme', 'arriere_plan_theme' ); }