• 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') with bloginfo('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

Viewing 1 replies (of 1 total)
  • Thread Starter inspiredmind

    (@inspiredmind)

    So often the case. Right after I asked this question, I thought to try using this:

    echo get_stylesheet_directory_uri();

    .. and it works.

    It is still not clear to me why bloginfo('stylesheet_directory_uri') doesn’t return the full uri. Can anyone explain?

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Correct way to retrieve child theme URI ?’ is closed to new replies.