Titan-Framework
Titan-Framework copied to clipboard
Panel shows id instead of name in nested customizer panels
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;.
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.
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' ), ) );
Though correct, this seems to be in conflict with Step 5 of the documentation, yes? Build a Simple Theme with Customizer Options