Options Framework Sidebar

Posted

The latest version of the Options Framework has a new hook to display content below the options panel. This feature was added thanks to @Satrya, who posted a neat screenshot on GitHub and requested it.

The hook can be used to display any content below the options panel, but one cool use is to add a sidebar with additional information about the theme. Here’s an example:

I added a demo theme of this to the Options Theme Kit if you’re interested to see exactly how it works.

Here’s a slightly simpler example:

add_action('optionsframework_after','exampletheme_options_after', 100);
function exampletheme_options_after() { ?>
    <p>Content after the options panel!</p>
<?php }

About Devin

I'm a WordPress developer based in Austin, Texas. Follow my projects on GitHub, or more general WordPress ramblings as @devinsays on twitter.

4 thoughts on “Options Framework Sidebar

  1. Roberto wrote:

    How can i add the sidebar before instead of after the option content?

    • Devin wrote:

      You’ll need to float the containers using CSS.

  2. sunil wrote:

    How can I use remove_action to remove functions that are hooked to ‘optionframework_after’?

Leave a Reply

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

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