Create a Widget below the Multimedia Box in Thesis

October 25, 2010
By

Custom Widget for Media Playerin Thesis

Copyright © 2010 Yorgo Nestoridis. Visit the original article at http://yorgonestoridis.com/yorgo-nestoridis-development/semiomantics/create-a-widget-below-the-multimedia-box-in-thesis.


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. Custom Widget below Multimedia Box in Thesis

Create the custom Widget in Thesis

The procedure is similar to creating a header ad widget described in an earlier post.

  1. Create the widget and hook it to the desired Thesis hook
  2. 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.

Custom Widget below Multimedia Box in Thesis WordPress Theme

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.


Author: Yorgo Nestoridis, Media Marketing & Publishing, Founder of YORGOO Publishing, YORGOO Press and Semiomantics.

If you enjoyed reading the above, please consider following future tips and strategies by RSS reader, Email delivery, or Kindle subscription.

This page is wiki editable click here to edit this page.

Related posts:

  1. Create a Header Widget in Thesis
  2. Semiomantics Thesis Interpretation
  3. How to Customize WordPress 2
  4. Create your First Flash Document
  5. How to Create an Ad for Sneakers

Tags: , , , , , , , , , , , , , , , , , ,