Correct way to retrieve child theme URI ?
-
Hello,
I am trying to move a massive amount of modifications a developer made to a theme, over to a child theme.
I am facing an issue with referencing files that were once located in the parent theme, which are now in the child theme.
I tried replacing instances of
bloginfo('theme_directory_uri')
withbloginfo('stylesheet_directory_uri')
. But the result of this is a uri like this:www.mydmain.com/childtheme/file.php
I was expecting something like,www.mydmain.com/wp-content/themes/childtheme/file.php
Perhaps I have misunderstood what stylesheet_directory_uri is meant to return? What is the recommended way to return the full URI of the childtheme directory?
Thanks…
Jonathan
- The topic ‘Correct way to retrieve child theme URI ?’ is closed to new replies.