Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using WordPress 3.5.1 and twentyten.

I want to remove the support for custom background. I found this text: http://codex.wordpress.org/Function_Reference/remove_custom_background

but i'm a newbie in php, so I dont know what to do whit the information.

I guess I should use this code <?php remove_custom_background() ?> but what to do with it? where should I put it?

Thanks! /Frida

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Inside the theme folder there should be a file called functions.php. Search for the line

add_theme_support( 'custom-background' );

and replace it with

#add_theme_support( 'custom-background' );

which is simply 'deleting' calling the function and thus the possibility to specify a custom background in the admin side.

share|improve this answer
    
Thank you, that was easy :) –  FridaSofia Mar 7 '13 at 7:07
    
You're welcome. Glad I could help. One note, however: every time you update the theme (which does not happen that often, and it is your choice to do so), the file functions.php (as well as every other theme file) will be overwritten, and so your edit. So just redo what you did to the line after an update and you'll be fine. –  t f Mar 7 '13 at 10:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.