32 lines
929 B
PHP
32 lines
929 B
PHP
<?php
|
|
|
|
function get_theme_version(){
|
|
return $version = "1.1.0";
|
|
}
|
|
|
|
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' ); |