Support » Plugin: OptionTree » Theme Mode in a child theme (need to have different options than parent theme)
3 years, 5 months ago
I’ve been using this plugin in theme mode for a theme of mine and it works great.
I’m now working on a child theme and I need to add theme options to override the parent theme’s options but I haven’t been able to find how this is done?
I have the theme-options.php file added into the child theme’s functions.php file, like this:
// Option Panel
load_template( trailingslashit( get_template_directory() ) . 'option-tree/ot-loader.php' );
load_template( trailingslashit( get_template_directory() ) . 'inc/theme-options.php' );
Am I missing something?
Any help would be greatly appreciated.
3 years, 1 month ago
I believe it is too late 🙂 but who knows…
get_template_directory retrieves the “mother” directories
It’s never too late 🙂
Thanks for the response, but I’m looking to override the theme options in the child theme, so the child theme can have it’s own custom options compared to the parent theme.
This will be in 2.3.0 you can see the discussion here https://github.com/valendesigns/option-tree/issues/100
Awesome, thank you!