Options Framework Theme

The Options Framework Theme has all the code included to build a out a full featured options panel. It’s a bundled version of the Options Framework Plugin for those folks who want to build the options directly into the theme (rather than relying on a plugin).

Available Options

  • text
  • textarea
  • checkbox
  • select
  • radio
  • upload (an image uploader)
  • images (use images instead of radio buttons)
  • background (a set of options to define a background)
  • multicheck
  • color (a jquery color picker)
  • typography (a set of options to define typography)
  • editor

Instructions

Copy the “inc” directory, options.php, and the code snippet in functions.php from the “Options Framework Theme” into the theme of your choice. Hack away. You can also watch the screencast here to see how it’s done.

When to Use Theme Version vs. Plugin Version

The code is 99% the same between the plugin and theme version. If you can do what you need with the plugin version, I think that’s the best route. If you find that you need to make significant modifications that aren’t possible with the plugin, go ahead and use the theme version.

Change the Menu Location

It’s highly recommended that you leave theme options under the “Appearance” menu where users expect them.

But, if you do decide to change the menu location it will break the media uploader. This is because the media uploader scripts are enqueued on $of_page= ‘appearance_page_options-framework’ in options-medialibrary-uploader.php. If you change the name or location of the menu, you’ll need to update the hook to be accurate, e.g. $of_page= ‘toplevel_page_options-framework’ and those scripts will load properly again.

Sanitization Filters

If you’re interested in how the options data is verified, or if you’re wondering why your script and embed tags are stripped out in the Options Framework, read this post.

Can I Use This Code in Commercial Themes

Yes! This code is 100% GPL. Please read the included license for more details.

Development Version on GitHub

The development version of the Options Framework Theme is available on GitHub.

Additional Tutorials

  • Options Framework + Theme Customizer
  • Options Framework Sidebar
  • Loading Additional Stylesheets from an Options Panel
  • Loading Google Fonts from Theme Options
  • Color Palettes with the Options Framework
  • Options Framework: Sanitization Filters

Purchase the Options Framework Theme Kit

The Options Framework Theme Kit, which includes the latest released version of the Options Framework Theme plus a collection of demonstrations themes is available for $25. You’ll be able to download updates and get new child themes as they are released.

If you only plan on using the plugin version of the Options Framework, the Options Kit might be what you’re looking for.

Checkout

Free copies are available to people who has contributed code or money to the Options Framework in the past, and/or have a theme hosted on WordPress.org. Contact me here if that applies to you.

501 thoughts on “Options Framework Theme

  1. Fee wrote:

    Hi Devin,
    you wrote a really wonderful plugin! And documentation! Thanks a lot :-))
    Did you find out a way to add the options generated css styles to the tinymce editor, the wordpress page and post editor? I only found ways to include ready hardcoded stylesheets, but no dynamically created styles.
    Thanks! Fee

    Reply
  2. Ashish anand wrote:

    Hello I have a issue with the plugin everytime I uploads the project from my local server to live server , all the option framework values lost..could you please help me regarding this…

    Reply
  3. Max wrote:

    You made my day! Thank you very much for this wonderful plugin, I was already giving up on adding theme options to my theme, when I found your project on GitHub!

    Reply
  4. Pingback: Options Framework & Theme Custmoizer | Jeremy Clark - TechNet.com

  5. Swapnil wrote:

    Hi Devin,

    This is something I was looking for from a long long time ago. You seriously made my day. I’m going to use this website to sell the themes I create: WordPressAction.com
    This is going to guide me in a right direction of the path towards creating a sell-able WordPress theme.

    Thanks a ton.
    Swapnil Samfrancisco.

    Reply
    • Devin wrote:

      Nice. Also, you might want to be aware that you can’t use “WordPress” in a domain name: wordpress.org/about/domains/. I made that mistake when I first started this site.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a class="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>