Last active
April 19, 2019 14:24
-
-
Save WordPress-Handbuch/28e2ba433c03399d4b8c4033b28c03a4 to your computer and use it in GitHub Desktop.
Basic functions.php for a Twenty Nineteen child theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'wp_enqueue_scripts', 'twentynineteen_child_enqueue_styles' ); | |
function twentynineteen_child_enqueue_styles() { | |
$parent_style = 'twentynineteen-style'; | |
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' ); | |
wp_enqueue_style( 'twentynineteen-child-style', | |
get_stylesheet_directory_uri() . '/style.css', | |
array( $parent_style ), | |
filemtime(get_stylesheet_directory() . '/style.css') | |
); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment