pfefferle / autonomie

"Autonomie" is a highly semantic, responsive, accessible and search engine optimized WordPress Theme. It provides HTML5 templates refined with microformats, microformats v2 and microdata (Schema.org). "Autonomie" supports a lot of OpenWeb plugins and is fully IndieWeb compatible.
https://notiz.blog/projects/autonomie/
MIT License
96 stars 21 forks source link

Switch to get_template_directory_uri for enqueue #67

Closed krafit closed 6 months ago

krafit commented 6 months ago

Using get_stylesheet_directory_uri()can cause issues for child themes, as WordPress tries to enqueue a file in the currently active theme directory instead of the root theme's directory.

get_template_directory_uri() returns the root theme URI, so the child theme doesn't have to handle assets like print.css, narrow-width.css, default-width.css, and wide-width.css.