<?php
$wp_customize->add_section(
   'offcanvas_options' ,
    array(
        'title' => __( 'Offcanvas Options', 'truthmag' ),
        'panel' => 'header_options_panel',
    )
);

/*Enable Offcanvas*/
$wp_customize->add_setting(
    'truthmag_options[enable_offcanvas]',
    array(
        'default'           => $truthmag_default['enable_offcanvas'],
        'sanitize_callback' => 'truthmag_sanitize_checkbox',
    )
);
$wp_customize->add_control(
    'truthmag_options[enable_offcanvas]',
    array(
        'label'    => __( 'Enable Offcanvas', 'truthmag' ),
        'section'  => 'offcanvas_options',
        'type'     => 'checkbox',
    )
);
