On child themes: It is stated:
... create a file called style.css. This is the only file required to make a child theme.
Then, it states:
The correct method to import the parent themes stylesheet into the child theme is to use
wp_enqueue_style()
in your child theme's 'functions.php':
<?php
add_action( 'wp_enqueue_scripts', 'enqueue_child_theme_styles', PHP_INT_MAX);
function enqueue_child_theme_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
wp_enqueue_style( 'child-style', get_stylesheet_uri(), array('parent-style') );
}
So apparently I also need a functions.php in the child? At first, I thought this function was to go into the style.css, but that does not seem reasonable.
What happens if I do not include the functions.php - will the style.css create a child theme (looking just like it's parent at first)?