Skapade stöd för default logo och bakgrund

This commit is contained in:
crille committed 2026-04-12 14:10:50 +02:00
1 parent dfffc61285
commit 3088197123
4 files changed
+25 -8

No files matched your search

+12
View File
@@ -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')
));
});