Title: Hook/Filter/add_action to the sidebar
Last modified: August 19, 2016

---

# Hook/Filter/add_action to the sidebar

 *  [leisegang](https://wordpress.org/support/users/leisegang/)
 * (@leisegang)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/)
 * <?php function global_footer () { ?>
    STUFF <?php } add_action(‘wp_footer’, ‘
   global_footer’);?>
 * When i add code in STUFF it gets in the footer on ALL blogs on my multisite install.
 * Is there any function for doint this in the sidebar?
    I need to add some content
   at the bottom of all sidebars sitewide.
 * Please help me.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895295)
 * Not without editing the sidebar.php I don’t think.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895307)
 * No, there’s no sidebar hooks. Not built in to WordPress itself.
 *  Thread Starter [leisegang](https://wordpress.org/support/users/leisegang/)
 * (@leisegang)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895328)
 * Why not?
 * Shouldnt there be?
 * How can i add content to the sidebar without having it as a widget and not editing
   theme files?
 * Because a lot of themes i have exists in newer versions but i dont want to upgrade
   because i have edited the sidebar.php now. And it takes some time doing that 
   with 100 themes.
 * any other solution for me? plugin or something in mu-plugins folder?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895380)
 * Not really. Header and Footer are required elements. Sidebar is not. I have themes
   without one, or with my widgets all over the place.
 * You know if you make a Child Theme, then you can edit your theme AND be able 
   to upgrade the master theme 🙂
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895411)
 * > How can i add content to the sidebar without having it as a widget and not 
   > editing theme files?
 * You can’t.

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

The topic ‘Hook/Filter/add_action to the sidebar’ is closed to new replies.

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)
 * [content](https://wordpress.org/support/topic-tag/content/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [sitewide](https://wordpress.org/support/topic-tag/sitewide/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 5 replies
 * 3 participants
 * Last reply from: [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/hookfilter/#post-1895411)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
