Child theme’s stylesheet cannot load [closed]

In the event a child theme is being used, this function will return the child’s theme directory URI. Use get_template_directory_uri() to avoid being overridden by a child theme. use : get_stylesheet_directory_uri() Example code Here <?php function my_theme_enqueue_styles() { $parent_style=”parent-style”; // This is ‘twentyfifteen-style’ for the Twenty Fifteen theme. wp_enqueue_style( $parent_style, get_template_directory_uri() . ‘/style.css’ ); wp_enqueue_style( … Read more

Using filter to override “get_parent_theme_file_path” in child-theme

WordPress applies ltrim on the $file — ltrim( $file, “https://wordpress.stackexchange.com/” ), so it becomes inc/template-tags.php instead of /inc/template-tags.php. So within your filter callback, you should use: if ( $file !== ‘inc/template-tags.php’ ) UPDATE my child version has the adjustments I don’t know if you made adjustments to pluggable or non-pluggable function(s) in the template file, … Read more