Skapade stöd för default logo och bakgrund

This commit is contained in:
2026-04-12 14:10:50 +02:00
parent dfffc61285
commit 3088197123
4 changed files with 25 additions and 8 deletions

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')
));
});