Get Current Child Theme URL In WordPress


While working within the theme files you can easily get the current theme URL by calling –

echo get_template_directory_uri();

But if you are working with a child theme it would return the URL of the parent theme. To get the current Child theme URL you can use the following –

echo dirname(get_stylesheet_uri())

Happy coding 🙂

This entry was posted in Wordpress and tagged , , . Bookmark the permalink.

Leave a Reply

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