Skip to content

Commit

Permalink
fix wpcs in child theme generation
Browse files Browse the repository at this point in the history
  • Loading branch information
thrijith committed Jan 16, 2018
1 parent 6e5eede commit 662ba51
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions templates/child_theme_functions.mustache
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
<?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' )
);
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' )
);
}

0 comments on commit 662ba51

Please sign in to comment.