In functions.php
I used the following code to enqueue assets, but for some reason all CSS is ignored (JS isn't ingonred):
function my_theme_enqueue_assets() {
wp_enqueue_style( 'parent-style', get_parent_theme_file_uri( 'style.css' ) );
wp_enqueue_script( 'behavior', get_theme_file_uri( 'behavior.js' ), array(), null, true );
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_assets' );
What's bad with the above code?
error_log( 'Parent Theme Style sheet is: ' . get_parent_theme_file_uri( 'style.css' ) );
Then look for that line in thedebug.log
located in./wp-content/
. That will tell you if the correct link is being created.