first commit
This commit is contained in:
28
functions.php
Normal file
28
functions.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
function my_awesome_theme_scripts() {
|
||||
// Enqueue the main stylesheet.
|
||||
wp_enqueue_style(
|
||||
'my-awesome-theme-style', // A unique handle for the stylesheet
|
||||
get_stylesheet_uri() // Gets the path to the style.css file
|
||||
);
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'my_awesome_theme_scripts' );
|
||||
|
||||
|
||||
function my_awesome_theme_setup() {
|
||||
// Add support for Featured Images (Post Thumbnails)
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
// Add support for a custom logo
|
||||
add_theme_support( 'custom-logo' );
|
||||
|
||||
// Let WordPress manage the document title
|
||||
add_theme_support( 'title-tag' );
|
||||
|
||||
// Register a navigation menu
|
||||
register_nav_menus( array(
|
||||
'primary_menu' => __( 'Primary Menu', 'my-awesome-theme' ),
|
||||
) );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'my_awesome_theme_setup' );
|
||||
Reference in New Issue
Block a user