• Resolved Aaron

    (@akeith2002)


    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)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    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

    (@akeith2002)

    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.