Site logo

Archived topic

Set Default Sidebar Layout Programatically

3 replies · Started by David on February 25, 2023

Viewing posts 1–4 of 4

Hi, I'm using a function to set some default customizer options including:

$cust_opt['underline_links'] = 'never';
$cust_opt['back_to_top'] = 'enable';
$cust_opt['dynamic_css_cache'] = false;
$cust_opt['smooth_scroll'] = 'true';

Which works fine, except I cannot seem to add an option to set the default sidebar layout to 'Content (no sidebars)'.

I've tried using $cust_opt['layout_setting'] = 'full-width'; and all other 'common sense' values to replace 'full-width' but cannot get it to work. Can you please help?

Thanks, David...

Great, thanks as always David...

You're welcome

This archived topic is closed to new replies.