Skip to content

Instantly share code, notes, and snippets.


spirokovac/Child's Theme function.php Secret

Last active Jul 15, 2019
What would you like to do?
//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