The get_template_directory_uri() function will always return the directory of the template, which, in a Child Theme, per the "Template:" header tag in style.css, is the Parent Theme.
If you need to reference the Child Theme directory URI, you should instead use the get_stylesheet_directory_uri() function.
'via Blog this'
Žádné komentáře:
Okomentovat