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.

How does one remove the custom theme admin panel from a theme that has the options to change colours, layouts, etc?

Thanks. K

share|improve this question

1 Answer 1

The three easiest options:

  1. Limit users' user role to Author or below
  2. Change the $cap parameter from 'edit_theme_options' to 'edit_options' in the add_theme_page() call that adds the settings page
  3. Remove the settings page entirely, by removing the callback that adds the settings page. e.g. if the Theme uses:

    function theme_slug_add_settings_page() {
        add_theme_page( $args );
    }
    add_action( 'admin_menu', 'theme_slug_add_settings_page' );
    

    Then you would remove that via:

    remove_action( 'admin_menu', 'theme_slug_add_settings_page' );
    
share|improve this answer

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.