Titan-Framework icon indicating copy to clipboard operation
Titan-Framework copied to clipboard

Panel shows id instead of name in nested customizer panels

Open applesapples1 opened this issue 8 years ago • 3 comments

For example...

$layout_panel = $titan->createThemeCustomizerSection( array( 'name' => 'Site Layout', 'panel_id' => 'site_layout', // Unique ID of the menu item
) );

$main_elements = $titan->createThemeCustomizerSection( array( 'name' => __( 'Main Layout', 'sage' ), 'panel' => 'site_layout', // Unique ID of the menu item ) );

The Site Layout panel will have the name 'site_layout;.

applesapples1 avatar Sep 10 '16 17:09 applesapples1

Good day @applesapples1! We're looking into this but for now, you may use the name parameter value 'Site Layout' instead of panel_id value.

ReggieDuran avatar Sep 15 '16 07:09 ReggieDuran

You've used this wrong. Here is a correct example below. This will create the new Section and it's NEW parent panel called "Header". Internally titan auto-creates the id from the name.

$section = $titan->createThemeCustomizerSection( array( 'panel' => __( 'Header', 'my-theme' ), // panel group 'name' => __( 'Logo', 'my-theme' ), 'desc' => __( 'This section is used to change the header logo settings.', 'my-theme' ), ) );

brandbrilliance avatar Feb 07 '17 12:02 brandbrilliance

Though correct, this seems to be in conflict with Step 5 of the documentation, yes? Build a Simple Theme with Customizer Options

dmhendricks avatar Mar 26 '17 19:03 dmhendricks