How to get child theme template directory?

Normally when we use child themes we need to get the child theme directory o the child theme template url. In our first attemp, we use this:

1
2
3
get_template_directory_uri(); // Both returns parent theme url
bloginfo('template_url');;
get_template_directory(); // Returns parent theme path

We need to use this:

1
get_stylesheet_directory_uri;

Hope it helps!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>