diff --git a/assets/images/logo.png b/assets/images/logo.png new file mode 100644 index 0000000..ea2d3f7 Binary files /dev/null and b/assets/images/logo.png differ diff --git a/assets/images/wallpaper.webp b/assets/images/wallpaper.webp new file mode 100644 index 0000000..23d6612 Binary files /dev/null and b/assets/images/wallpaper.webp differ diff --git a/functions.php b/functions.php index 7fd7927..5279163 100644 --- a/functions.php +++ b/functions.php @@ -6,4 +6,16 @@ add_action('wp_enqueue_scripts', function() { array(), filemtime(get_theme_file_path('theme.css')) ); +}); +add_action('after_setup_theme', function () { + add_theme_support('custom-logo', [ + 'height' => 250, + 'width' => 250, + 'flex-width' => true, + 'flex-height' => true, + ]); + + set_theme_mod('custom_logo', attachment_url_to_postid( + get_theme_file_uri('assets/images/logo.png') + )); }); \ No newline at end of file diff --git a/theme.json b/theme.json index 2372323..2f0e921 100644 --- a/theme.json +++ b/theme.json @@ -3,7 +3,11 @@ "version": 3, "settings": { - "appearanceTools": true, + "appearanceTools": true, + "custom": { + "defaultLogo": "assets/images/logo.png", + "transition": "all 0.3s ease" + }, "color": { "palette": [ { "slug": "background-primary", "name": "Background Primary", "color": "#0E0F12" }, @@ -102,19 +106,20 @@ "shadow": "0 0 12px rgba(0,0,0,0.6)" } ] - }, - - "custom": { - "transition": "all 0.3s ease" } }, - "styles": { + "css": "body { \ + background-image: url('/wp-content/themes/wp-theme-crille2026/assets/images/background.webp'); \ + background-size: cover; \ + background-position: center; \ + background-repeat: no-repeat; \ + background-attachment: fixed; \ + }", "color": { - "background": "var(--wp--preset--color--background-primary)", + "background": "transparent", "text": "var(--wp--preset--color--text-primary)" }, - "typography": { "fontFamily": "var(--wp--preset--font-family--inter)", "fontSize": "var(--wp--preset--font-size--normal)"