Ready to get started?Download WordPress


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

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


  2. Monika
    Posted 7 months ago #

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

    get_template_directory retrieves the "mother" directories
    child directories

  3. Mike Smith (madebyguerrilla)
    Posted 7 months 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 7 months 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 7 months ago #

    Hey Derek,

    Awesome, thank you!


You must log in to post.

About this Plugin

About this Topic