get_template_directory_uri():获取主题目录url
成功情况下会输出主题所在路径(域名+主题目录名称):
例如:
。
一般用于引用js或者css。
例如:
<?php echo get_template_directory_uri();?>/content/mobile/style.css
用法
echo get_template_directory_uri();
get_template_directory_uri():获取主题目录url
成功情况下会输出主题所在路径(域名+主题目录名称):
例如:
。
一般用于引用js或者css。
例如:
<?php echo get_template_directory_uri();?>/content/mobile/style.css
用法
echo get_template_directory_uri();
文章来源:智云一二三科技
文章标题:WordPress函数之get_template_directory_uri()
文章地址:https://www.zhihuclub.com/79440.shtml
评论已关闭
Asking questions ɑre genuinely pleasant thіng if yoᥙ аre not understanding ɑnything еntirely, exϲept thіs post giveѕ nice understanding
yet.
Feel free tօ visit mу web page ()