• I am trying to remove a few sections from the customize page (the sections in the menu on the left side). I was able to remove the navigation and static front page section but cannot remove the layout section. The code I’m using to remove these sections are in my functions.php. This is what it looks like:

    function dk_customize_register($wp_customize)
    {
    	$wp_customize->remove_section( 'twentyeleven_layout' );
    	$wp_customize->remove_section( 'nav' );
    	$wp_customize->remove_section( 'static_front_page' );
    
    }
    add_action( 'customize_register', 'dk_customize_register' );

    I’m using the twenty eleven theme and I inspected the elements and this is how I got the id’s for the sections. Any idea what is going on and why I can’t remove the layout section? Any suggestions? Any help would be greatly appreciated.

    Thank you!

    Dustin

  • The topic ‘Cannot remove layout section from customize’ is closed to new replies.