# Does Pinegrow Support Customizer Panels?

**URL:** <https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596>\
**Category:** WordPress\
**Created:** [October 11, 2020, 2:58am UTC](https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596 "2020-10-11T02:58:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DorianGrey](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DorianGrey](https://forum.pinegrow.com/u/DorianGrey)\
**Post date:** [October 11, 2020, 2:58am UTC](https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596/1 "2020-10-11T02:58:24Z")

</div>

Hi there!  
Just wanted to find out if Wordpress Customizer panels can be created in Pinegrow, or if there are other methods for grouping related sections.

Also, do we have any detailed tutorials on how to use customizer controls and conditionals?  
Would really appreciate a response on this.

Thanks.

---

<div class="post-metadata">

**Author:** ![Rob](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/rob/32/9_2.png) [@Rob](https://forum.pinegrow.com/u/Rob)\
**Post date:** [October 11, 2020, 9:43am UTC](https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596/2 "2020-10-11T09:43:05Z")

</div>

@DorianGrey have look at these articles  
[Customizer Section](https://pinegrow.com/docs/wordpress/actions/customizer-section/) and [Customizer Fields](https://pinegrow.com/docs/wordpress/actions/customizer-field/)  
Hope they’re helpful.

---

<div class="post-metadata">

**Author:** ![DorianGrey](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@DorianGrey](https://forum.pinegrow.com/u/DorianGrey)\
**Post date:** [October 11, 2020, 9:00pm UTC](https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596/3 "2020-10-11T21:00:50Z")

</div>

Thanks @Rob 🙂

Already seen those. I was hoping I’d find something a little more detailed.  
Thanks again anyway.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [October 11, 2020, 9:52pm UTC](https://forum.pinegrow.com/t/does-pinegrow-support-customizer-panels/4596/4 "2020-10-11T21:52:03Z")

</div>

Thanks for your suggestion.

You can easily add as many panels as you want/need into your custom themes with a few lines of code. Then from Pinegrow, you will just have to specify the panel name in your customizer settings.

Here is a code sample that you can add in your custom.php file (or directly in functions.php).  
Don’t forget to replace all the **st2** items with your own **theme slug**.

```
/**
 * Customizer: Add Panels
 * This file demonstrates how to add Panels to the Customizer.
 * @package code-examples
 * @copyright Copyright (c) 2015, WordPress Theme Review Team
 * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Public License, v2 (or newer)
 */
 
/**
 * Theme Options Customizer Implementation.
 * Implement the Theme Customizer for Theme Settings.
 * @link http://ottopress.com/2012/how-to-leverage-the-theme-customizer-in-your-own-themes/
 * @param WP_Customize_Manager $wp_customize Object that holds the customizer data.
 */

function st2_register_customizer_panels( $wp_customize ){

	/*
	 * Failsafe is safe
	 */

	if ( ! isset( $wp_customize ) ) {
		return;
	}

	/**
	 * Add Panel for General Settings.
	 * @uses $wp_customize->add_panel() https://developer.wordpress.org/reference/classes/wp_customize_manager/add_panel/
	 * @link $wp_customize->add_panel() https://codex.wordpress.org/Class_Reference/WP_Customize_Manager/add_panel
	 */

	$wp_customize->add_panel(
		// $id
		'st2_panel_general',
		// $args
		array(
			'priority' => 10,
			'capability' => 'edit_theme_options',
			'theme_supports'	=> '',
			'title' => __( 'ST2 General Settings', 'st2' ),
			'description' => __( 'Configure general settings for the Theme Name Theme', 'st2' ),
		)
	);	
}
// Settings API options initilization and validation
add_action( 'customize_register', 'st2_register_customizer_panels' );
```
