Posts tagged as:

multimedia box

Thesis comes with a multimedia box that enables you to add rotating images, video, or custom code to it. I had never used it for anything other than images until I came across a post by Adam Barber on the DIY Forums. He had created a custom function that would enable the multimedia box to hold widgets like the sidebars. Once the custom code was activated, the media box was accessible via the Widgets page just like the sidebars. Any widget that you can add to the sidebars can be added to the media box.

Here’s the code:

/*widgetized the multi-media box */
if ( function_exists('register_sidebar') ) register_sidebar(array('name'=>'Media Box', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', ));

function mediabox_widget() { if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Media Box') ) : endif; }
add_action('thesis_hook_multimedia_box', 'mediabox_widget');

{ 0 comments }