feat: Initial theme setup (theme features, locale, main menu)
This commit is contained in:
18
wp-content/themes/moonshine/includes/core/theme-setup.php
Normal file
18
wp-content/themes/moonshine/includes/core/theme-setup.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
// Setup theme
|
||||
add_action( 'after_setup_theme', 'moonshine_after_setup_theme' );
|
||||
function moonshine_after_setup_theme() {
|
||||
// Load textdomain
|
||||
load_theme_textdomain( 'moonshine', get_theme_file_path( 'languages' ) );
|
||||
|
||||
// Theme features
|
||||
add_theme_support( 'custom-logo' );
|
||||
add_theme_support( 'editor-styles' );
|
||||
remove_theme_support( 'core-block-patterns' );
|
||||
|
||||
// Register menus
|
||||
register_nav_menu( 'main', __( "Main menu", 'moonshine' ) );
|
||||
|
||||
// Register sidebars
|
||||
}
|
||||
Reference in New Issue
Block a user