How do I create a URI child theme?
get_stylesheet_directory_uri() will return the child theme directory url, you got that bit just right. ( get_template_directory_uri() would return the parent theme directory url.) Also, if you want styles. css outputted, the first line of code will do that.
How do I find the template directory in WordPress?
get_template_directory() This function will return the full file path to the current theme directory, like the get_template_directory_uri() if you are using a child theme then this function will return the path to the parent theme directory.
How to get the child theme Uri instead?
To get the child theme URI instead, you need to use get_stylesheet_directory_uri (). You can find these in the documentation, along with a list of other useful functions for getting various theme directory locations.
Why is get template Directory pointing to parent theme?
The problem I am having is that the get_template_directory_uri is pointing to the parent theme like site/wp-content/themes/twentythirteen/myGallery/gallery_functions_include.php but I want it to point to my child theme which should be site/wp-content/themes/child-twentythirteen/myGallery/gallery_functions_include.php
How to get child theme url in WordPress?
Use following code for child theme directory. get_stylesheet_directory_uri () will return the child theme directory url, you got that bit just right. ( get_template_directory_uri () would return the parent theme directory url.) Also, if you want styles.css outputted, the first line of code will do that.
How to get the child theme’s stylesheet Directory?
What you need is get_stylesheet_directory_uri, which works exactly the same like get_template_directory_uri but it will return the child theme directory if you are using a child theme, but it will return the parent theme directory if not. was returning the child theme, rather than the parent theme, but only for a specific site within my multi-site.