Title: multisite with dynamic footer.php; same theme
Last modified: August 19, 2016

---

# multisite with dynamic footer.php; same theme

 *  [bdoreste](https://wordpress.org/support/users/bdoreste/)
 * (@bdoreste)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/)
 * I have few blogs running on a single multisite install, and want to use the same
   theme for all of them.
 * The catch: I want to vary the footer.php depending on what blog is being accessed.
 * i.e., if blog123 is accessed, one set of footer info/links is displayed, if blog
   234 is accessed, another set is displayed, etc…
 * I assume the syntax would be similar to the conditional tags needed for the meta
   robots in the header (like below)
 *     ```
       <?php if(is_single() || is_page() || is_home() || is_category()) { ?>
       <meta name="robots" content="index,follow,noodp" />
       <?php } else { ?>
       <meta name="robots" content="noindex,noarchive,follow,noodp" />
       <?php } ?>
       ```
   
 * but am unsure how to single out a single blog id or domain.
 * tks.

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

 *  [mcfd90](https://wordpress.org/support/users/mcfd90/)
 * (@mcfd90)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562860)
 * You used to be able to edit the footer under Appearance > Footer for each individual
   blog, this seems to have been removed – at least by default. I’ll let you know
   if I find a solution.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562861)
 * mcfd90, that depends on the theme, I think.
 * To the original question, I think you could use `$current_site` somehow.
 * Or better, use get_current_site()
 * [http://codex.wordpress.org/WPMU_Functions/get_current_site](http://codex.wordpress.org/WPMU_Functions/get_current_site)
 *  [mcfd90](https://wordpress.org/support/users/mcfd90/)
 * (@mcfd90)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562862)
 * Thanks ipstenu.
 * The Super Admin is still allowed to modify them for users otherwise I was going
   to make the footer a sidebar like in twentyten… I’ll try that.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562864)
 * I think I’d just widgetize the footer.
 *  [mcfd90](https://wordpress.org/support/users/mcfd90/)
 * (@mcfd90)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562867)
 * bdoreste I had been going to suggest using bloginfo(‘name’); but get_current_site()
   is much better (as names can be changed by the user).
 * Many thanks Andrea_r and ipstenu. So I’m not thread hijacking I’ve moved [here](http://wordpress.org/support/topic/424745).
 *  Thread Starter [bdoreste](https://wordpress.org/support/users/bdoreste/)
 * (@bdoreste)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562873)
 * mcfd90, thanks for the response!
 * I ended up using `get_bloginfo('url')` with a series of if statements, but will
   try implementing `get_current_site()` instead.
 * thanks again!
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562874)
 * Get current site referrs to the *network* name, not the site. In the code sites
   are blogs, the network is a site.
 * get_current_site() will always return your main domain, unless you have multiple
   networks.

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

The topic ‘multisite with dynamic footer.php; same theme’ is closed to new replies.

## Tags

 * [footer.php](https://wordpress.org/support/topic-tag/footer-php/)
 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 4 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/multisite-with-dynamic-footerphp-same-theme/#post-1562874)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
