/**
* Set default settings when switching themes
* See all default setting id's at framework/customizer/settigs/[base].php
*/
function my_default_total_settings() {
// Set footer to 2 widgets
set_theme_mod( 'footer_widgets_columns', '2' );
// Disable topbar
set_theme_mod( 'top_bar', '' );
}
add_action( 'after_switch_theme', 'my_default_total_settings' );
Snippets: Set Default Customizer Settings Via Child Theme
All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)