Appearance Customize example code

Appearance Customize – WordPress theme Quick Start

David Nash code, wordpress Leave a Comment

There’s a lot of detailed information on how to add settings under the WordPress Appearance Customize menu. It’s far too detailed if you just want to add a couple of settings. In this example I just wanted to add some simple fields. One for the company title, which differs from the site title. And another for their logo which appears in the WordPress header. Modifying Appearance Customize with functions.php add_action(‘customize_register’, ‘yourtheme_customize_register’); function yourtheme_customize_register( $wp_customize ) { //first we create a section $wp_customize->add_section( ‘yourtheme_theme_options’, array( ‘title’ => __( ‘Theme options’, ‘yourtheme’ ), ‘priority’ => 1000, //(probably) make it the last item …