How to Add a Second Multimedia Box

Jul 14th, 2009

in Multimedia Box, Sidebars

As you’ll see in the video, a previous client wanted to have a YouTube video
below the sidebars. The multimedia box can display images, widgets, custom
code, video and pretty much whatever else you want.

Thesis comes with one multimedia box, which in this case was already taken.

No problem. I embedded the video in a brand new multimedia box. Here’s how I did it…

  1. Add code to custom_functions.php

    //VIDEO BOX UNDER SIDEBARS
    function bottom_video_box() {
     ?><div class="sidebar_box"> <div id="bottom_video_box"> <object width="410" height="366"><param name="movie" value="http://www.youtube.com/v/CamEXQ8x72c&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/CamEXQ8x72c&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="410" height="366"></embed></object> </div></div><?php
    }
    add_action('thesis_hook_after_sidebars', 'bottom_video_box');

    Note: Don’t forget to replace the embed code with your own video code.

  2. Add code to custom.css

    .sidebar_box {margin-bottom:2em; text-align:center;}

Based on Kristarella’s code provided at the Thesis support forums. Thanks Kristen!

1 Star2 Stars3 Stars4 Stars5 Stars (3) Loading ... Loading ...
Share and Enjoy:
  • email
  • del.icio.us
  • Facebook
  • Digg
  • FriendFeed
  • Twitter
  • StumbleUpon
  • Technorati
  • Reddit
  • Yahoo! Buzz
  • manu Verma
    I tried doing exactly what you said and this is what it told me:
    Parse error: syntax error, unexpected '<' in /home6/sattvamo/public_html/wp-content/themes/thesis_151/custom/custom_functions.php on line 35
blog comments powered by Disqus

Previous post:

Next post: