2

In Wordpress 4.1's Theme Customizer there's a Static Front Page option. I've set up my theme to have a custom front page (via front-page.php in the theme) so I don't want this option to be available here.

enter image description here

How can I remove it?

5

This code will do the job.

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

It will remove Static Front Page option.

Details here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.