Title: Mutlisite and functions.php &#8211; How this works
Last modified: August 19, 2016

---

# Mutlisite and functions.php – How this works

 *  Resolved [Aaron](https://wordpress.org/support/users/akeith2002/)
 * (@akeith2002)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/mutlisite-and-functionsphp-how-this-works/)
 * Hey all.
 * For some reason I am unable to find any information on this.
 * If you are using the same theme throughout a few WP sites running multisites,
   is there a way to have different functions.php files for each site? If so, where
   does it live? and can I have a global file as well as individual files?
 * My reasoning is that I have some global settings that I want throughout my sites(
   security stuff) but each site will have a few different custom post types that
   need to be declared.
 * Thanks for any and all help.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 6 months ago](https://wordpress.org/support/topic/mutlisite-and-functionsphp-how-this-works/#post-1731366)
 * > is there a way to have different functions.php files for each site
 * funtions.php is done by theme, not site.
 * That said, you could code into your functions.php a check for WHICH site is running,
   and then call it like this:
 * `include("http://yoursite.com/path/to/site-functions.php");`
 * Or maybe
    `include("http://yoursite.com/path/to/site-#-functions.php");`
 * You’ll have to play around.
 *  Thread Starter [Aaron](https://wordpress.org/support/users/akeith2002/)
 * (@akeith2002)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/mutlisite-and-functionsphp-how-this-works/#post-1731377)
 * Cool. Sounds like a plan. Thanks for the quick response!

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

The topic ‘Mutlisite and functions.php – How this works’ is closed to new replies.

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [multi-site](https://wordpress.org/support/topic-tag/multi-site/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [Aaron](https://wordpress.org/support/users/akeith2002/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/mutlisite-and-functionsphp-how-this-works/#post-1731377)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
