Contents
[ hide ]
How to Create A custom widget below the Multimedia Box
Using two sidebars on the right side underneath the Multimedia Box on Thesis, I felt that the sidebars were too narrow to place my Yorgo Music Live Stream Media Player. The ideal place would be just below the Multimedia Box spanning over the width of the two below sidebars. The purpose of the Media Player is to be able to listen to music of course, but then also to stream recordings of YORGOO Calls or for separate sound streaming accompanying tutorials for those who prefer listening to reading. In short, it’s an experimental feature designed for media oriented customers. 
Create the custom Widget in Thesis
The procedure is similar to creating a header ad widget described in an earlier post.
- Create the widget and hook it to the desired Thesis hook
- Populate the widget with the media player (you can of course load anything you wish)
Create the Widget below the Multimedia Box
Paste the below code into your custom-functions.php file from your WordPress dashboard (Custom file Editor in the Theme menu):
//-------------Create After Multimedia Box Widget------------
register_sidebars(1,
array(
'name' => 'After MultimediaBox',
'before_widget' => '<li class="widget %2$s" id="%1$s">',
'after_widget' => '</li>',
'before_title' => '<h3>',
'after_title' => '</h3>'
)
);
function after_multimediabox() { ?>
<div id="after_multimediabox" class="sidebar">
<ul class="sidebar_list">
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('After MultimediaBox') ){ ?>
<li class="widget"><h3><?php _e('After MultimediaBox', 'thesis'); ?></h3>Edit the widget content from your WP Widgets panel under Appearance :-).</li><?php } ?>
</ul>
</div>
<?php }
add_action('thesis_hook_after_multimedia_box', 'after_multimediabox', '1');Add Style to your Custom Widget
The widget will automatically pick up your default or custom styles.
Populate your Widget
Now, just head over to your Widget panel under Appearance in your WordPress Dashboard and you will find your new Widget area ready for use. Pull in a Text or any other widget and populate your sidebar below the Multimedia Box.
If you enjoyed reading the above, please consider following future tips and strategies by RSS reader, Email delivery, or Kindle subscription.Author: Yorgo Nestoridis, Media Marketing & Publishing, Founder of YORGOO Publishing, YORGOO Press and Semiomantics.
![]()
Related posts:





