diff --git a/defaults/bg.png b/defaults/bg.png new file mode 100644 index 0000000..3d47e8f Binary files /dev/null and b/defaults/bg.png differ diff --git a/functions.php b/functions.php index 56686f9..2cbcaad 100644 --- a/functions.php +++ b/functions.php @@ -4,7 +4,14 @@ if ( !defined( 'WPINC' ) ) { } function minimalistflex_add_supports() { - add_theme_support( 'custom-background' ); + add_theme_support( 'custom-background', Array( + 'default-image' => get_template_directory_uri() . '/defaults/bg.png', + 'default-position-x' => 'center', + 'default-position-y' => 'center', + 'default-size' => 'cover', + 'default-repeat' => 'no-repeat', + 'default-attachment' => 'fixed' + ) ); add_theme_support( 'title-tag' ); add_theme_support( 'automatic-feed-links' ); add_theme_support( "align-wide" );