Home › Forums › Support › Override functions.php in child themes › Reply To: Override functions.php in child themes
March 23, 2015 at 10:56 pm
#90681
Tom
Lead Developer
Lead Developer
Hi there,
You can actually use the filter attached to that function.
For example, this is from our “Exhibit” child theme:
if ( !function_exists( 'exhibit_exhibit_defaults' ) ) :
add_filter( 'generate_option_defaults','exhibit_exhibit_defaults' );
function exhibit_exhibit_defaults()
{
$exhibit_defaults = array(
'hide_title' => '',
'hide_tagline' => '',
'logo' => '',
'container_width' => '1220',
'header_layout_setting' => 'fluid-header',
'center_header' => 'true',
'center_nav' => 'true',
'nav_alignment_setting' => 'center',
'header_alignment_setting' => 'center',
'nav_layout_setting' => 'fluid-nav',
'nav_position_setting' => 'nav-below-header',
'nav_search' => 'enable',
'content_layout_setting' => 'separate-containers',
'layout_setting' => 'right-sidebar',
'blog_layout_setting' => 'right-sidebar',
'single_layout_setting' => 'right-sidebar',
'post_content' => 'full',
'footer_layout_setting' => 'fluid-footer',
'footer_widget_setting' => '3',
'background_color' => '#9e9e9e',
'text_color' => '#3a3a3a',
'link_color' => '#1e73be',
'link_color_hover' => '#222222',
'link_color_visited' => '',
);
return $exhibit_defaults;
}
endif;
Hope this helps 🙂