Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7399497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:04:05+00:00 2026-05-29T04:04:05+00:00

I start new projects by writing a child theme for the twentyeleven theme. I

  • 0

I start new projects by writing a child theme for the twentyeleven theme. I rarely design the new theme to use any of the options built into the twentyeleven theme (such as background color, etc). Those residual options don’t really hurt anything, but I’d like to get rid of them since they don’t do anything.

The trouble is that the theme options are declared in the parent theme’s functions.php, which is loaded along with (not instead of) the child theme’s functions.php file (so I could delete them but they’ll come back next upgrade).

Is there a way to remove or disable those theme options from my child theme? Perhaps something along the lines of a “remove_options()” function? Or perhaps something that would achieve that effect? In other words, the question is whether theme_options can be removed WITHOUT deleting/overriding the original function that added them.

I’m sure with enough puttering, I could hide the option with CSS or javascript… but c’mon.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:04:05+00:00Added an answer on May 29, 2026 at 4:04 am

    After a second round of digging…

    This is TOTALLY easy!

    You can retrace my steps by starting here, but the code is pretty self-explanatory:

    add_action( 'init', 'remove_crap' );
        function remove_crap() {
    
        remove_custom_image_header();
        remove_custom_background();
        remove_theme_support('post-formats');
    }
    

    You can look these up in the codex. Remove_theme_support takes one of several strings that identify various options (besides just post-formats). The only issue I encountered is that they need to be called from a hook (you can’t just dumpt them into functions.php). I’m using init but there’s probably another one that’s more appropriated.

    The only thing I still haven’t figured out is how to remove the “Theme Options” page link that appears under Appearances. I know it’s added with add_theme_page() but there doesn’t seem to be a handy remove_theme_page().

    UPDATE: I found it!
    This is VERY poorly documented, but in the end it’s quite easy to do:

    add_action('admin_init', 'remove_twentyeleven_theme_options', 11);
         function remove_twentyeleven_theme_options() {
     remove_submenu_page('themes.php', 'theme_options');
    }
    

    In my example, ‘themes.php’ targets the Appearances menu and ‘theme_options’ is the menu_slug used in the twentyeleven theme. Obviously these parameters will differ depending on which menu or submenu you’re editing. This page will point you in the right direction.

    ps: Here’s how to get rid of templates from the parent theme that you don’t want to use:
    THIS isn’t essential to my exact question, but it’s closely related and probably useful to anyone who’s trying to do what I’m doing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am asking my self many times before start writing a new app or
Whenever I start a new project in Flex builder I always have to go
I will start new PDA project on the windows mobile and compact framework 2.0
I have to start a new project where user authentication/management will be required. A
I'm gonna start a new project soon, using .Net 3.5 and Winform on an
I'm going to start a new project - rewriting an existing system (PHP +
I am about to start a new project and would like to document its
We're about to start a new project, and our client's current application is .NET
I am trying to start a new project (asp.net MVC) and I would like
I'm going to start a new project that's building web apps from scratch. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.