404 Errors When Using Child Theme
-
First, thanks for a great theme. I’m making some small modifications with a child theme and I’m seeing some 404 errors for the following files:
https://example.com/wp-content/themes/adamos-child/js/flexslider.css?ver=3.9″
https://example.com/wp-content/themes/adamos-child/js/flexslider-init.js?ver=3.9″
https://example.com/wp-content/themes/adamos-child/js/jquery.flexslider-min.js?ver=3.9″
https://example.com/wp-content/themes/adamos-child/js/flexslider-init.js?ver=3.9″This problem seems to stem from referencing these resources with
get_stylesheet_directory_uri()
instead ofget_template_directory_uri()
in the theme’s functions.php file. Given that these are mostly libraries that shouldn’t be overridden by child themes, it seems likeget_template_directory_uri()
would be a better choice. Thanks.See the codex here: https://codex.www.ads-software.com/Function_Reference/get_template_directory_uri
- The topic ‘404 Errors When Using Child Theme’ is closed to new replies.