How to dynamically get theme directory?
-
Hi. My question is simple: how to get the theme directory.
I was developing an website in wordpress, that in my localhost it was:
localhost/sites/project_name/so, in my header.php I put the css path:
<link src=”/sites/project_name/wp-content/themes/my_theme/css.css”but, when I send it to other developer, his address structure was:
localhost/projects/blalba/project_name/then wordpress couldn’t find the css.
so, how to dynamically get my current template`s root directory path?
thanks.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘How to dynamically get theme directory?’ is closed to new replies.