我正在创建一个基于TwentyEleven的推特引导儿童主题。我想加载引导。所以我写了下面这行代码来获取引导。js文件,但它没有返回正确的路径。
<script type="text/javascript" src="<?php dirname( bloginfo(\'stylesheet_url\') ) ?>/bootstrap/js/bootstrap.js"></script>
我得到的路径:http://localhost/wordpress/wp-content/themes/codemasala/style.css/bootstrap/js/bootstrap.js
我应该获得的路径:http://localhost/wordpress/wp-content/themes/codemasala/bootstrap/js/bootstrap.js