get_template_directory_uri() issues with sub-directory theme
-
Hi there !
Well, my main install is under https://www.site.com/blog,
my sub-directory install is under https://www.site.com/blog/travels.Within the theme “Roots”,
echo get_template_directory_uri();
give me
/blog/travels/wp-content/themes/roots
… all good.But,
wp_enqueue_style('roots_bootstrap', get_template_directory_uri() . '/css/bootstrap.css', false, null);
give me
<link rel=”stylesheet” href=”/blog/travels/blog/travels/wp-content/themes/roots/css/bootstrap.css”>Curious isn’t it ?!
Same for the stylesheets called from the plugins, but only with this theme ! The same plugin’s stylesheets called from another theme (TwentyEleven) works fine !
Could it be an URL rewriting somewhere ? My .htaccess seems find with the other themes.
I would appreciate your help on that one folks.
- The topic ‘get_template_directory_uri() issues with sub-directory theme’ is closed to new replies.