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:

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

We need to use this:

get_stylesheet_directory_uri;

Hope it helps!

Add Comment Register



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>