Title: Adding ad code across all sites
Last modified: August 20, 2016

---

# Adding ad code across all sites

 *  [davidstokes](https://wordpress.org/support/users/davidstokes/)
 * (@davidstokes)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-ad-code-across-all-sites/)
 * I’ve a multi network and want to be able to place a small ad in below the forums
   across all sites ( without the user being able to remove it)
 * How can i do this ?

Viewing 1 replies (of 1 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [13 years, 4 months ago](https://wordpress.org/support/topic/adding-ad-code-across-all-sites/#post-3388801)
 * mu-plugins 🙂
 * Toss in something like this to a file there and you’ll output that for everyone.
   I use it for Google Analytics.
 *     ```
       <?php
       add_action('wp_footer', 'your_function');
   
       function your_function() {
         $content = '<p>This is inserted at the bottom</p>';
         echo $content;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding ad code across all sites’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 1 reply
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/adding-ad-code-across-all-sites/#post-3388801)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
