Skip to content

Commit

Permalink
Merge pull request #117 from thrijith/GH-109-child-theme
Browse files Browse the repository at this point in the history
fix wpcs in child theme generation
  • Loading branch information
gitlost authored Jan 17, 2018
2 parents 6e5eede + 662ba51 commit 642fcb5
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 642fcb5

Please sign in to comment.