Skip to content

Instantly share code, notes, and snippets.

@WordPress-Handbuch
Last active April 19, 2019 14:24
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 WordPress-Handbuch/28e2ba433c03399d4b8c4033b28c03a4 to your computer and use it in GitHub Desktop.
Save WordPress-Handbuch/28e2ba433c03399d4b8c4033b28c03a4 to your computer and use it in GitHub Desktop.
Basic functions.php for a Twenty Nineteen child theme
<?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