Title: get_stylesheet_directory bug on localhost
Last modified: August 20, 2016

---

# get_stylesheet_directory bug on localhost

 *  [Matthew Willse](https://wordpress.org/support/users/thecoup/)
 * (@thecoup)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/get_stylesheet_directory-bug-on-localhost/)
 * I’m reporting a potential bug. Minor, but is it odd enough that it could point
   toward something more important? Smarter people than me can answer that question.
 * On localhost, multisite, with a child theme…
 * get_stylesheet_directory() returns a buggy path. Example:
 * `http://localhost/[multisite_root]/[site]/Users/[username]/[local_root]/[multisite_root]/
   wp-content/themes/[child_theme]`
 * get_bloginfo( ‘stylesheet_directory’ ) in this instance works properly.
 * example in use:
 *     ```
       wp_enqueue_script(
       	'tableplugin',
           get_stylesheet_directory() . '/js/stupidtable.min.js', // doesn't work
           // get_bloginfo( 'stylesheet_directory' ) . '/js/stupidtable.min.js', // works
       	array('jquery')
       );
       ```
   

The topic ‘get_stylesheet_directory bug on localhost’ is closed to new replies.

## Tags

 * [get_stylesheet_directory](https://wordpress.org/support/topic-tag/get_stylesheet_directory/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Matthew Willse](https://wordpress.org/support/users/thecoup/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/get_stylesheet_directory-bug-on-localhost/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
