-
Notifications
You must be signed in to change notification settings - Fork 1
Modifying Plugin Features
Bryan Willis edited this page Dec 10, 2015
·
1 revision
Completely override theme features, including only what you want:
function override_gb3_custom_theme_support($bsg) {
$bsg = array(
'bsg-sidebars',
'bsg-add-head-markup',
'bsg-bootstrap-markup',
'bsg-footer-creds',
'bsg-genesis-setup',
'bsg-image-display',
'bsg-load-assets',
'bsg-footer'
);
return $bsg;
}
add_filter('bsg_modify_theme', 'override_gb3_custom_theme_support');Add bleeding edge features not included by default (while also including default features):
function add_to_gb3_custom_theme_support($bsg) {
$theme_extras = array(
'bsg-panels-widget'
);
// combine the two arrays
$bsg = array_merge($theme_extras, $bsg);
return $bsg;
}
add_filter('bsg_modify_theme', 'add_to_gb3_custom_theme_support');