[resolved] Theme Mode in a child theme (need to have different options than parent theme) (5 posts)

  1. Mike Smith (madebyguerrilla)
    Posted 2 years 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.


  2. Monika
    Posted 2 years ago #

    I believe it is too late :-) but who knows...

    get_template_directory retrieves the "mother" directories
    child directories

  3. Mike Smith (madebyguerrilla)
    Posted 2 years ago #

    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.

  4. Derek Herman
    Plugin Author

    Posted 2 years ago #

    This will be in 2.3.0 you can see the discussion here https://github.com/valendesigns/option-tree/issues/100

  5. Mike Smith (madebyguerrilla)
    Posted 2 years ago #

    Hey Derek,

    Awesome, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • OptionTree
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic