if ( ! function_exists('custom_theme_background') ) { // Register Theme Features function custom_theme_background() { // Add theme support for Post Formats add_theme_support( 'post-formats', array( 'gallery', 'image', 'video' ) ); // Add theme support for Custom Background $background_args = array( 'default-color' => 'ffffff', 'default-image' => '', '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 Translation load_theme_textdomain( 'virtue', get_template_directory() . '/language' ); } add_action( 'after_setup_theme', 'custom_theme_background' ); }