Support » How-To and Troubleshooting » [Tweaking Twentyeleven] Remove "Theme Options"

[Tweaking Twentyeleven] Remove "Theme Options"

  • 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,

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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' );

    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.



    Forum Moderator

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Tweaking Twentyeleven] Remove "Theme Options"’ is closed to new replies.