init
This commit is contained in:
22
.editorconfig
Normal file
22
.editorconfig
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
# This file is for unifying the coding style for different editors and IDEs
|
||||||
|
# editorconfig.org
|
||||||
|
|
||||||
|
# WordPress Coding Standards
|
||||||
|
# https://make.wordpress.org/core/handbook/coding-standards/
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
||||||
|
|
||||||
|
[{.jshintrc,*.json,*.yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[{*.txt,wp-config-sample.php}]
|
||||||
|
end_of_line = crlf
|
||||||
21
functions.php
Normal file
21
functions.php
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Tonys-rookie-enhancements Theme functions and definitions.
|
||||||
|
*
|
||||||
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
||||||
|
*
|
||||||
|
* @package tonys-rookie-enhancements
|
||||||
|
*/
|
||||||
|
|
||||||
|
add_action( 'wp_enqueue_scripts', 'rookie_parent_theme_enqueue_styles' );
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enqueue scripts and styles.
|
||||||
|
*/
|
||||||
|
function rookie_parent_theme_enqueue_styles() {
|
||||||
|
wp_enqueue_style( 'rookie-style', get_template_directory_uri() . '/style.css' );
|
||||||
|
wp_enqueue_style( 'tonys-rookie-enhancements-style',
|
||||||
|
get_stylesheet_directory_uri() . '/style.css',
|
||||||
|
[ 'rookie-style' ]
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user