Skapade stöd för default logo och bakgrund
This commit is contained in:
@@ -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')
|
||||
));
|
||||
});
|
||||
Reference in New Issue
Block a user