Child theme without functions.php
-
Hello,
I created a child theme to Twenty twenty-one. I created style.css and functions.php. It worked. I then tested with commenting these lines out in functions.php:
// enqueue parent styles //function ns_enqueue_styles() { // wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); //} //add_action( 'wp_enqueue_scripts', 'ns_enqueue_styles' );It still works.
Why does all tutorials say that you must enqueue parent and child theme in functions.php? Is that no longer necessary in the latest WordPress 5.8?
Fred
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Child theme without functions.php’ is closed to new replies.