WordPress.org

Support

Support » Multisite » [Resolved] get_template_directory_uri() issues with sub-directory theme

[Resolved] get_template_directory_uri() issues with sub-directory theme

  • Hi there !

    Well, my main install is under http://www.site.com/blog,
    my sub-directory install is under http://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.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Resolved] get_template_directory_uri() issues with sub-directory theme’ is closed to new replies.