Still trying to understand the question. Are these templates you have created? If so, you have to tweak the code in custom-styles.php. Look for these lines:
Code: Select all
$template_prefixes = array('1l-sidebar.php' => '_1l', '1r-sidebar.php' => '_1r', '1l1r-sidebar.php' => '_1l1r', '2l-sidebars.php' => '_2l', '2r-sidebars.php' => '_2r');
$template_sb = array('1l-sidebar.php' => 1, '1r-sidebar.php' => 1, '1l1r-sidebar.php' => 2, '2l-sidebars.php' => 2, '2r-sidebars.php' => 2);
You can add to these arrays. So set the above to:
Code: Select all
$template_prefixes = array('1l-sidebar.php' => '_1l', '1r-sidebar.php' => '_1r', '1l1r-sidebar.php' => '_1l1r', '2l-sidebars.php' => '_2l', '2r-sidebars.php' => '_2r', 'custom-template.php' => false);
$template_sb = array('1l-sidebar.php' => 1, '1r-sidebar.php' => 1, '1l1r-sidebar.php' => 2, '2l-sidebars.php' => 2, '2r-sidebars.php' => 2, 'custom-template.php' => 1);
Notes:
1. Replace custom-template.php with your template's file name
2. Make sure that in the first array your template is associated with "false"
3. Put in the appropriate number of sidebars in the second array.
There may be some other tweaks needed in suffusion-classes.php:
1. Look for the function get_widths_for_template.
2. Change its parameters to:
Code: Select all
function get_widths_for_template($prefix, $sb_count = false) {
3. Look for this code:
Code: Select all
if ($prefix) {
$sidebar_count = $sb_count;
}
else {
$sidebar_count = $suf_sidebar_count;
}
4. Change it to:
Code: Select all
if ($sb_count != false) {
$sidebar_count = $sb_count;
}
else {
$sidebar_count = $suf_sidebar_count;
}
Now go back to custom-styles.php and look for this:
Code: Select all
$widths = $css_generator->get_widths_for_template(false, $suf_sidebar_count);
Change it to:
Code: Select all
$widths = $css_generator->get_widths_for_template(false, false);
If this works let me know and I might consider adding a few filters for this so that you will not have to edit theme files.