-
Notifications
You must be signed in to change notification settings - Fork 286
Integrate the plugin into your theme
pryley edited this page Dec 3, 2012
·
2 revisions
-
Download the
options-framework-plugin
-
Move the
options-framework
plugin folder inside your theme (in this example, I created a folder inside my theme calledlib
and copied the options-framework folder inside it). -
Paste the following code inside your theme's
functions.php
:// Re-define the options-framework URL define( 'OPTIONS_FRAMEWORK_URL', get_template_directory_uri() . '/lib/options-framework/' ); // Load the Options Framework Plugin if ( !function_exists( 'optionsframework_init' ) ) { define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory() . '/lib/options-framework/' ); require_once OPTIONS_FRAMEWORK_DIRECTORY . 'options-framework.php'; }
-
Inside
options-framework
there is a folder calledoptions-check
and inside that isoptions.php
. Copy this file into your theme folder. -
Now just customise
options.php
(the one you copied into your theme folder) to suit your needs!