Bring your shovel and let's move some sand. Let's play in the Sandbox.
You are not logged in.
Hi...
I have started using Theme Templates, in the same way that Sandbox does. (I'm referring to how you can have a root theme with all of your template files, and then a various separate themes that contains stylesheets - lets you have multiple styles for the same templates)
I noticed recently that wordpress has depricated bloginfo('stylesheet_directory'); - this means that there is no way to get to the directory that your theme is using dynamically. They still provide a bloginfo('template_directory'); - but that takes you to the root theme.
http://codex.wordpress.org/Template_Tags/bloginfo#Deprecated_Parameters
Do you have any suggestions on how to get to the theme directory, or, am I using theme templates the wrong way?
I posted on wordpress forums, but no one seemed to know. Thanks.
Offline
<?php bloginfo('wpurl'); ?>/wp-content/themes/your-child-theme-directory-name-here/whatever
Has worked for me.
echo dirname( get_bloginfo('stylesheet_url') )
Has been suggested to me, although I haven't tested it.
Offline
You are viewing a mobilized version of this site...
View original page here