Title: Linking theme folder outside wp-content
Last modified: August 18, 2016

---

# Linking theme folder outside wp-content

 *  [capxxx](https://wordpress.org/support/users/capxxx/)
 * (@capxxx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/linking-theme-folder-outside-wp-content/)
 * Is it possible to link the theme folder outside wp-content directory? Let say
   i want to put all my themes in a directory called [http://www.mysite.com/themes](http://www.mysite.com/themes)
   so that 20 independent blogs within my site ( i.e [http://www.mysite.com/blog1](http://www.mysite.com/blog1),
   [http://www.mysite.com/blog2](http://www.mysite.com/blog2)) can use the centralized
   themes?
 * I found a function calling TEMPLATEPATH, i’m curius as where did the function
   is defined?

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

 *  [Avenir](https://wordpress.org/support/users/avenir/)
 * (@avenir)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/linking-theme-folder-outside-wp-content/#post-182268)
 * To be pedantic, TEMPLATEPATH is a PHP constant, not a function. I believe that
   it is defined in wp-settings.php. The definition is around line 124. Change the
   get_template_directory() to an absolute path to whatever directory you want to
   use.
 * I’m not sure if this will work, but it sounds OK to me.
 *  Thread Starter [capxxx](https://wordpress.org/support/users/capxxx/)
 * (@capxxx)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/linking-theme-folder-outside-wp-content/#post-182331)
 * I’ve tried renaming the get_template_directory() but its not working, it just
   gave a blank page. But I tried hunting the function
    get_template_directory()
   in functions.php “hopefully it’s called a function”, and it seems that it is 
   linked to the function call get_theme_root () and get_theme_root_uri (). So i
   changed the ABSPATH and get_settings(‘siteurl’) called in this two function with
   my desired path and it’s almost work where it post the blog data (e.g comments,
   words, pics, links) on the front page but not following the template itself. 
   In the admin panel under the Presentations>Themes it posted all the themes i 
   had in the folder but i cant select the themes. In the theme editor however give
   the right link to the file under browsing but it says “Oops, no such file exists!
   Double check the name and try again, merci.” So did i miss something here? Or
   did i miss a lot 😛

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

The topic ‘Linking theme folder outside wp-content’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [capxxx](https://wordpress.org/support/users/capxxx/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/linking-theme-folder-outside-wp-content/#post-182331)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
