Title: codeguerilla's Replies | WordPress.org

---

# codeguerilla

  [  ](https://wordpress.org/support/users/codeguerilla/)

 *   [Profile](https://wordpress.org/support/users/codeguerilla/)
 *   [Topics Started](https://wordpress.org/support/users/codeguerilla/topics/)
 *   [Replies Created](https://wordpress.org/support/users/codeguerilla/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/codeguerilla/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/codeguerilla/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/codeguerilla/engagements/)
 *   [Favorites](https://wordpress.org/support/users/codeguerilla/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Styles and Scripts not loading](https://wordpress.org/support/topic/styles-and-scripts-not-loading/)
 *  Thread Starter [codeguerilla](https://wordpress.org/support/users/codeguerilla/)
 * (@codeguerilla)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/styles-and-scripts-not-loading/#post-4871552)
 * Marking this resolved…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Styles and Scripts not loading](https://wordpress.org/support/topic/styles-and-scripts-not-loading/)
 *  Thread Starter [codeguerilla](https://wordpress.org/support/users/codeguerilla/)
 * (@codeguerilla)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/styles-and-scripts-not-loading/#post-4871551)
 * Haha Derp. I thought I was loosing my mind there for a moment.
 * Thanks Esmi 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with get_stylesheet_directory using child theme](https://wordpress.org/support/topic/problem-with-get_stylesheet_directory-using-child-theme/)
 *  Thread Starter [codeguerilla](https://wordpress.org/support/users/codeguerilla/)
 * (@codeguerilla)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-get_stylesheet_directory-using-child-theme/#post-4804736)
 * Sorry, that was actually a typo on my part here, Like I said I am currently using
   the full path and replaced it so you could see my non working code. The actual
   code does not have those characters.
 * Code is this:
 *     ```
       function add_required_scripts() {
          // register your script location and dependencies
          wp_register_script('bootstrap', get_stylesheet_directory() . '/wp-content/themes/twentyfourteen-child/js/bootstrap.min.js', array('jquery'));
          wp_register_script('flexslider',  '/wp-content/themes/twentyfourteen-child/jquery.flexslider-min.js', array('jquery'), '2.1');
          // enqueue the script
          wp_enqueue_script('bootstrap');
          wp_enqueue_script('flexslider');
       }
       add_action('wp_enqueue_scripts', 'add_required_scripts');
       ```
   
 * Still returning the broken file path of:
 * [http://localhost/clients/buysellmyhomelaC:xampphtdocsclientsmyclient/wp-content/themes/twentyfourteen-child/wp-content/themes/twentyfourteen-child/js/bootstrap.min.js?ver=3.8.2](http://localhost/clients/buysellmyhomelaC:xampphtdocsclientsmyclient/wp-content/themes/twentyfourteen-child/wp-content/themes/twentyfourteen-child/js/bootstrap.min.js?ver=3.8.2)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Problem with get_stylesheet_directory using child theme](https://wordpress.org/support/topic/problem-with-get_stylesheet_directory-using-child-theme/)
 *  Thread Starter [codeguerilla](https://wordpress.org/support/users/codeguerilla/)
 * (@codeguerilla)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/problem-with-get_stylesheet_directory-using-child-theme/#post-4804732)
 *     ```
       function add_required_scripts() {
          // register your script location and dependencies
          wp_register_script('customscripts', '/get_stylesheet_directory() . /js/bootstrap.min.js', array('jquery'));
          wp_register_script('flexslider',  '/get_stylesheet_directory() . /jquery.flexslider-min.js', array('jquery'), '2.1');
          // enqueue the script
          wp_enqueue_script('customscripts');
          wp_enqueue_script('flexslider');
       }
       add_action('wp_enqueue_scripts', 'add_required_scripts');
       ```
   
 * Pretty much the same for the stylesheets just using wp_enque_style()
 * For the sake of getting things done I currently replaced the calls to get_stylesheet_directory()
   with the actual path, ie: [http://localhost/clients/myclient/js/flexslider.js](http://localhost/clients/myclient/js/flexslider.js)
   which loads the scripts and has allowed me to keep working but obviously this
   is not the best solution.
 * thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Horizantal subnav menu](https://wordpress.org/support/topic/horizantal-subnav-menu/)
 *  Thread Starter [codeguerilla](https://wordpress.org/support/users/codeguerilla/)
 * (@codeguerilla)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/horizantal-subnav-menu/#post-4791978)
 * It is a custom theme. As far as I can tell whover started building the theme 
   copied over the twentyfourteen theme and has modified it.

Viewing 5 replies - 1 through 5 (of 5 total)