Skip to content

Integrate the plugin into your theme

pryley edited this page Dec 3, 2012 · 2 revisions
  1. Download the options-framework-plugin

  2. Move the options-framework plugin folder inside your theme (in this example, I created a folder inside my theme called lib and copied the options-framework folder inside it).

  3. 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';
     }
    
  4. Inside options-framework there is a folder called options-check and inside that is options.php. Copy this file into your theme folder.

  5. Now just customise options.php (the one you copied into your theme folder) to suit your needs!

Clone this wiki locally