Get Template Directory
-
Hey, I’m sure this is pretty simple, but I’ve been trying and searching for over an hour night and I can’t seem to figure it out.
I’m using a gallery plugin which links to a gallery stylesheet, as I am using multiple templates I have put different gallery stylesheets within the different theme folders. I am trying to change the style link so that it points to the corresponding stylesheet. This is what it currently looks like:
echo "<link rel='stylesheet' href='" . $plugin_url . "/lazyest-style.css' type='text/css' media='screen' />\n";
It currently takes the plugin url and looks for lazyest-style.css within it. I want to change this so that it takes the template url. I’m sure this can be done by changing the $plugin_url to something that references the template url. What tag can I use to reffer to the template?
Any help is much appreciated,
Thanks,
Chris
- The topic ‘Get Template Directory’ is closed to new replies.