Title: Overwriting custom_header class
Last modified: August 19, 2016

---

# Overwriting custom_header class

 *  [Loubar](https://wordpress.org/support/users/loubar/)
 * (@loubar)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/overwriting-custom_header-class/)
 * Hi!
 * I have set up a WordPress with multisite activated. I want my users to use a 
   custom made theme. In the theme, I want the users to be able to select a specific
   color and upload a header image of any size. The standard custom_header.php does
   however require a predefined size of the header image, which is not desired in
   this case. I modified the custom_header.php to work as I want it to be and I’m
   very satisfied with the result. However, hacking the core functions is not so
   optimal when it comes to updating a WP installation, since my modifications to
   the function will be overwritten to its original state when updating.
 * So, my question is ho to somehow let my theme or whatever overwrite the original
   file/class/function. The filter function where you add hocks does not seems to
   work, I guess it’s because the custom_header is a class rather than a function.
 * cheers,
    /L

The topic ‘Overwriting custom_header class’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [Loubar](https://wordpress.org/support/users/loubar/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/overwriting-custom_header-class/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
