Skip to content

Instantly share code, notes, and snippets.

@spirokovac
Last active July 15, 2019 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spirokovac/ce1799cac46de6558e87341e8c6f57d8 to your computer and use it in GitHub Desktop.
Save spirokovac/ce1799cac46de6558e87341e8c6f57d8 to your computer and use it in GitHub Desktop.
<?php
//Child Theme Functions File
function enqueue_wp_child_theme() {
{
//This is your parent stylesheet you can choose to include or exclude this by going to your Child Theme Settings under the "Settings" in your WP Dashboard
wp_enqueue_style('parent-css', get_template_directory_uri().'/style.css' );
}
//This is your child theme stylesheet = style.css
wp_enqueue_style('child-css', get_stylesheet_uri());
wp_enqueue_script('twentynineteen-child-js', './twentynineteen-child/js/script.js', array( 'jquery' ), '1.0', true );
}
add_action( 'wp_enqueue_scripts', 'enqueue_wp_child_theme' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment