Title: remove_custom_background()?
Last modified: August 19, 2016

---

# remove_custom_background()?

 *  [Carl-Fredrik Herö](https://wordpress.org/support/users/carlfredrikhero/)
 * (@carlfredrikhero)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/)
 * I’m creating a child-theme to TwentyTen and need to disable the custom background
   and custom image header.
 * I tried to use remove_theme_support but those two are blacklisted since and admin-
   section is included.
 * Any ideas?
 * Thanks in advance!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/#post-1603172)
 * write your own version of the function `twentyten_setup() { ... }`
    in the functions.
   php of your child theme, not including the calls for custom background and custom
   header, only copying what you want to keep.
 *  [Aimee](https://wordpress.org/support/users/greatdanemaniac/)
 * (@greatdanemaniac)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/#post-1603306)
 * I too have a similar problem, but instead I’d like to add my own adjustments 
   to the visual editor. I’ve tried to follow the instructions in the comments of
   the twentyten theme’s function.php file, but it doesn’t work.
 * Alchymyth: Can you give me a correct example of another version of the twentyten_setup
   function that you mentioned? I don’t really know how to do it.
 * This is my code that I started with:
 *     ```
       <?php
   
       			add_action( 'after_setup_theme', 'my_child_theme_setup', );
        				 function my_child_theme_setup() {
   
       		// This theme styles the visual editor with editor-style.css to match the theme style.
       	add_editor_style();
   
       	}
       		?>
       ```
   
 * I’d appreciate any help I can get. Thanks!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/#post-1603317)
 * i haven’t worked with it before, however, it seems that the function
    `add_editor_style();`
   which should call the default css file, does not do it in a child theme; [http://codex.wordpress.org/Function_Reference/add_editor_style](http://codex.wordpress.org/Function_Reference/add_editor_style)
 * adding a css file name into the function, like so, worked for me:
    `add_editor_style('
   twentyten_child_editor_style.css');` – the styles in this css file are adapted
   by the tinyMCE editor.
 * i didn’t use the `add_action( 'after_setup_theme', 'my_child_theme_setup', );`
   method;
 * the line
    `add_editor_style('twentyten_child_editor_style.css');` is simply in
   my ‘twentyten_setup()’ function of my TwentyTen child theme (see below):
 *     ```
       function twentyten_setup() { 
   
       	// This theme styles the visual editor with editor-style.css to match the theme style.
       	add_editor_style('twentyten_child_editor_style.css');
   
       	// This theme uses post thumbnails
       	add_theme_support( 'post-thumbnails' );
       ...
       ...
       ...
       ```
   
 * hope his helps 😉
 *  [Aimee](https://wordpress.org/support/users/greatdanemaniac/)
 * (@greatdanemaniac)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/#post-1603324)
 * Thanks!
    Yes, it worked like a charm!!! Now, I’ve solved one of the two mysteries
   with child themes. Thank you!

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

The topic ‘remove_custom_background()?’ is closed to new replies.

## Tags

 * [child theme](https://wordpress.org/support/topic-tag/child-theme/)
 * [custom-image-header](https://wordpress.org/support/topic-tag/custom-image-header/)

 * 4 replies
 * 3 participants
 * Last reply from: [Aimee](https://wordpress.org/support/users/greatdanemaniac/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/remove_custom_background/#post-1603324)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
