Title: [Plugin: OptionTree] Theme Integration
Last modified: August 19, 2016

---

# [Plugin: OptionTree] Theme Integration

 *  [Ruven](https://wordpress.org/support/users/harta-e/)
 * (@harta-e)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/)
 * Really cool and easy to use plugin!
 * I was just wondering, if I can also integrate it into a theme, so the theme users
   don’t have to deal with plungin installation and data import. I would like to
   provide out of the box functionality. So as soon as the user activates the theme,
   he should have the theme option menu with all the options ready to start.
 * Is that pollible now or in future versions?
 * Thank you.

Viewing 15 replies - 16 through 30 (of 33 total)

[←](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/?output_format=md)
2 [3](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/3/?output_format=md)

 *  [Bainternet](https://wordpress.org/support/users/bainternet/)
 * (@bainternet)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728526)
 * [@ghostpool](https://wordpress.org/support/users/ghostpool/) and [@vauvarin](https://wordpress.org/support/users/vauvarin/)
   
   did you solve the “No direct script access allowed” issue?
 *  [since83](https://wordpress.org/support/users/since83/)
 * (@since83)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728530)
 * Full theme integration would be just pure AWESOMENESSSSSS. Would liek to see 
   a options for developers to comment out the documentation and settings pages 
   for end users also. Being able to add pages with just text and images would be
   nice for liek info on using the theme or somehitng… if this isnt already in there.
 *  [since83](https://wordpress.org/support/users/since83/)
 * (@since83)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728531)
 * I got it to work without errors but no CSS or images are working.
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728538)
 * I’ll be updating the plugin again later this week to accept a default XML file
   in your theme so options are not added via the admin panel. It’s the best solution
   for keeping the plugin updated on every site/theme using OptionTree without creating
   a separate non plugin framework.
 *  [Juan Federico Reinoso](https://wordpress.org/support/users/bicho44/)
 * (@bicho44)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728539)
 * Also a INPRODUCTION option will be nice, so when its activate (via functions.
   php) the documentation and settings are disabled.
    `define(OPTION_TREE_INPRODUCTION,"
   yes");` Something like that. I hope im clear, thanks in advance.
 *  [Paul de Wouters](https://wordpress.org/support/users/pauldewouters/)
 * (@pauldewouters)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728546)
 * yes, would be nice to be able to hide the documentation and settings menus when
   the site is shipped to client
 *  [Jason Bahl](https://wordpress.org/support/users/jasonbahl/)
 * (@jasonbahl)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728562)
 * I also ran into the “No direct script access allowed” issue. . .
 * Here’s what I had to change:
 * In the class.admin.php page there are 3 spots where I changed
 * OT_PLUGIN_DIR.’/front-end
 * to
 * TEMPLATEPATH . ‘/option-tree/front-end
 * Hopefully that helps minimize someone’s troubles.
 * I think this plugin is AWESOME and having the ability to have it built in to 
   a theme is even more AWESOME!
 *  [Saroj](https://wordpress.org/support/users/sarojlakra/)
 * (@sarojlakra)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728564)
 * THIS CODE WORKS WELL FOR ME (for css/images issue)
 *     ```
       require_once (TEMPLATEPATH . '/lib/plugins/option-tree/index.php');
       define( 'OT_PLUGIN_DIR', TEMPLATEPATH . '/lib/plugins/option-tree');
       define( 'OT_PLUGIN_URL', get_template_directory_uri()  . '/lib/plugins/option-tree');
       ```
   
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728567)
 * Later today there will be a new version that has the ability to integrate with
   a theme and hides the settings and docs pages while pulling in the theme options
   from an XML file on install or upgrade. Also, the options data will be populated
   from a TXT file for new installs.
 *  [Flaunt Books](https://wordpress.org/support/users/skooks/)
 * (@skooks)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728568)
 * That’s really great Derek.
 * I am curious if you would be interested in some development I’ve done on your
   1.1.6 version that allows a user to save settings into an alternate array (option)
   to have easily accessible layouts that can be activated / deleted / exported.
 * The purpose of coding this was to allow a client to easily manage several designs
   for their site within the Options Tree Settings without have to export / import
   txt files.
 * Just a simple click of the mouse let’s a user save the current settings as a 
   new design and then create / activate / delete & export many more of them.
 * We also added some action hooks into a few places that allow more control over
   the internal processes.
 * Let me know as I would be happy to share it with you and the community.
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728569)
 * [@skooks](https://wordpress.org/support/users/skooks/) I would love to see what
   you’ve done contact me derek[at]valendesigns.com and we’ll see about integrating
   your changes into OptionTree.
 *  [warpol](https://wordpress.org/support/users/warpol/)
 * (@warpol)
 * [15 years ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728578)
 * [@derek](https://wordpress.org/support/users/derek/), awesome work with the plugin,
   it’s been pivotal in the new theme we’ve been developing.
 * I’m +1 for integrating the plugin directly into a theme as opposed to a plugin.
   Updates are not a big deal for users and, in fact, are a liability. For those
   of us extending your work, It’s best for the developer to release updated themes
   with OptionTree built in rather than risk a new version of OptionTree destroying
   any current settings/mods.
 * We’ve also branched off some new features. One implements a checkbox toggle to
   show/hide additional options. Another implements full image upload insertion 
   in the slider option (before you had to directly type in the file path to the
   image). Now you can use the image library to insert pictures. Let me know if 
   you’d like the code.
 *  [Flaunt Books](https://wordpress.org/support/users/skooks/)
 * (@skooks)
 * [15 years ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728579)
 * [@derek](https://wordpress.org/support/users/derek/), I second the awesomeness
   of this plugin.
 * [@warpol](https://wordpress.org/support/users/warpol/), I would love to get the
   code for the full image upload insertion.
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728580)
 * [@warpol](https://wordpress.org/support/users/warpol/) Yes send me the code and
   an explanation of where you changed it and what it’s doing and I’ll add it to
   the core.
 * Send it to derek[at]valendesigns[dot]com.
 *  Plugin Author [Derek Herman](https://wordpress.org/support/users/valendesigns/)
 * (@valendesigns)
 * [15 years ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/2/#post-1728582)
 * I added image upload to the slider in 1.1.7 that will be available tomorrow after
   the beta testers have verified it’s working along with all the other updates.
   You all are more than welcome to follow bleeding edge progress over at github
   and commit changes if you feel something is lacking.
 * [https://github.com/valendesigns/option-tree](https://github.com/valendesigns/option-tree)
 * Also, thanks guys for all the support and for the handful of people that actually
   have been submitting code to the project.

Viewing 15 replies - 16 through 30 (of 33 total)

[←](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/?output_format=md)
[1](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/?output_format=md)
2 [3](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/3/?output_format=md)

The topic ‘[Plugin: OptionTree] Theme Integration’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/option-tree_363534.svg)
 * [OptionTree](https://wordpress.org/plugins/option-tree/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/option-tree/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/option-tree/)
 * [Active Topics](https://wordpress.org/support/plugin/option-tree/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/option-tree/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/option-tree/reviews/)

## Tags

 * [OptionTree](https://wordpress.org/support/topic-tag/optiontree/)

 * 33 replies
 * 20 participants
 * Last reply from: [arjanv](https://wordpress.org/support/users/arjanv/)
 * Last activity: [14 years, 10 months ago](https://wordpress.org/support/topic/plugin-optiontree-theme-integration/page/3/#post-1728598)
 * Status: not resolved