mirror of
https://gh.wpcy.net/https://github.com/wp-cli/scaffold-command.git
synced 2026-04-27 10:26:26 +08:00
22 lines
595 B
Text
22 lines
595 B
Text
<?php
|
|
/**
|
|
* {{theme_name}} Theme functions and definitions
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/theme-functions/
|
|
*
|
|
* @package {{slug}}
|
|
*/
|
|
|
|
add_action( 'wp_enqueue_scripts', '{{parent_theme_function_safe}}_parent_theme_enqueue_styles' );
|
|
|
|
/**
|
|
* Enqueue scripts and styles.
|
|
*/
|
|
function {{parent_theme_function_safe}}_parent_theme_enqueue_styles() {
|
|
wp_enqueue_style( '{{parent_theme}}-style', get_template_directory_uri() . '/style.css' );
|
|
wp_enqueue_style( '{{slug}}-style',
|
|
get_stylesheet_directory_uri() . '/style.css',
|
|
array( '{{parent_theme}}-style' )
|
|
);
|
|
|
|
}
|