In "functions/actions.php" there is a function
- Code: Select all
function suffusion_get_pseudo_template_class() { ... }
which applies a filter called "suffusion_pseudo_template_class". I tried to mimic the last part of the code, i.e. to fake a "suf_pseudo_template = 1r" custom field.
I added the following code to my "functions.php"
- Code: Select all
add_filter('suffusion_pseudo_template_class', 'custom_template_extra_post_classes');
function custom_template_extra_post_classes($template)
{
if (is_single())
{
global $suffusion;
if (!isset($suffusion) || is_null($suffusion)) {
$suffusion = new Suffusion();
}
$template[] = 'page-template-1r-sidebar-php';
$suffusion->set_body_layout($template);
}
return $template;
}
The area for the sidebar is shown but the sidebar itself is not shown. Does somebody know what is wrong?
