Title: variable in functions.php
Last modified: August 19, 2016

---

# variable in functions.php

 *  Resolved [wineguppy](https://wordpress.org/support/users/wineguppy/)
 * (@wineguppy)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/variable-in-functionsphp/)
 * Hi everyone,
 * I’m trying to make some modifications to my WP 3.0.1 multisite install, and am
   trying to figure out where %s in the functions.php file (theme = TwentyTen) is
   defined.
 * – excerpt from functions.php file in ~theme/twentyten
 *     ```
       // No CSS, just IMG call. The %s is a placeholder for the theme template directory URI.
       define( 'HEADER_IMAGE', '%s/images/headers/path.jpg' );
       ```
   
 * I’m asking because uploaded images have the url [http://www.subdirectory-domain.com/&#8230](http://www.subdirectory-domain.com/&#8230);
   whereas some of the template headers have [http://www.rootdomain.com/subdirectory-domain/&#8230](http://www.rootdomain.com/subdirectory-domain/&#8230);
 * I’d like to remove all references to the root domain.
 * Thanks!
    Ben.

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

 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/variable-in-functionsphp/#post-1666085)
 * It;s not the theme, really.
 * It’s pulling that becasue the mapped domains still have references to the “mother”
   domain. Go to Super Admin -> Sites. Edit one of the mapped sites so the original
   subfolder address is now the mapped address.
 * Presto, problem solved.
 *  Thread Starter [wineguppy](https://wordpress.org/support/users/wineguppy/)
 * (@wineguppy)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/variable-in-functionsphp/#post-1666114)
 * Thanks so much Andrea! This was definitely the solution. You just saved me a 
   bunch of time…

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

The topic ‘variable in functions.php’ is closed to new replies.

## Tags

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

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 2 replies
 * 2 participants
 * Last reply from: [wineguppy](https://wordpress.org/support/users/wineguppy/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/variable-in-functionsphp/#post-1666114)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
