[closed] [Tweaking Twentyeleven] Remove "Theme Options" (5 posts)

  1. rickleijtencom
    Posted 3 years ago #

    Dear Community,

    I've been searching how to remove the "Theme options" in the Admin menu.
    The reason is that i allways start with twentyeleven as framework and from there i build my own themes, but ye i dont use "theme options" so i want to remove it, ive been searching on the internet and havnt found it yet.

    Any remove_action call or w/e ?

    Kind regard,

  2. Darin Kotter
    Posted 3 years ago #

    Not sure if there's a hook or filter you can use, but where that is done, in functions.php there's a theme-options.php file included. So you'll just need to remove that required line and it should get rid of the theme options.

  3. rickleijtencom
    Posted 3 years ago #

    Cheers that did it.. for any others this is the code:

    // Load up our theme options page and related code.
    	require( dirname( __FILE__ ) . '/inc/theme-options.php' );
  4. brnater
    Posted 2 years ago #

    I tried the same and it broke the site. Also tried removing the entire twentyeleven custom options that appear at the top of the functions.php file w/this, but still to no success:

    remove_action('after_setup_theme', 'twentyeleven_setup');

    I am on twentyeleven vers. 1.5 and WP 3.5 if that helps at all.

  5. esmi
    Forum Moderator
    Posted 2 years ago #

    As per the Forum Welcome, please post your own topic. Your problem - despite any similarity in symptoms - is likely to be completely different.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.