Twenty Elven: How to change default values in theme options with a child theme?
-
I want to change the default values in the theme options of twenty eleven. ie, I want one column, no sidebar as the default layout and a different colour other than #1b8be0 as the default link color. How can I do this with a child theme?
I found the following function in /inc/theme-options.php
function twentyeleven_get_default_theme_options() { $default_theme_options = array( 'color_scheme' => 'light', 'link_color' => twentyeleven_get_default_link_color( 'light' ), 'theme_layout' => 'content-sidebar', ); if ( is_rtl() ) $default_theme_options['theme_layout'] = 'sidebar-content'; return apply_filters( 'twentyeleven_default_theme_options', $default_theme_options ); }
Will it be of any help?
- The topic ‘Twenty Elven: How to change default values in theme options with a child theme?’ is closed to new replies.