Sidebar Customization

So far, I have been showing you how to customize your Duet studio website using the page editor. These same techniques can also be applied to the sidebar through the Studio Announcement editor. All the Javascripts and CSS used throughout your studio website should be placed in the sidebar so they will be readily available on every page.

In this article, I'll show you how to add a Testimonial on the sidebar that will appear on all pages. If you hover over a testimonial on my sidebar, you should see the particular section highlight and the photo wiggle. Go ahead and try it now.

Here's how I did it:

  1. While logged in, go to Website > Studio Announcements.

  2. Click the Add Announcement button to create a new sidebar item.

  3. Make sure you're in Source view and add the following code:

    <div class="testimonial">
    <img src="https://path/to/your/photo.jpg" class="photo" />
    <blockquote cite="Author">"Some testimonial text here.." <span>Author</span></blockquote>
    </div>
    <div class="clear-line"></div>
    

    You may paste the code above for each testimonial in your sidebar replacing all items highlighted in red.

  4. Add the following styles:

    <style type="text/css">
    .testimonial { opacity:.7; }
    .testimonial:hover { opacity:1; }
    .testimonial img.photo { float:left; margin:0 5px 5px 0; padding:.2em; width:60px; height:60px; border:1px solid #999; box-shadow: 0px 0px 3px #777; -moz-box-shadow: 0px 0px 3px #777; -webkit-box-shadow: 0px 0px 3px #777; }
    .testimonial blockquote { font-style:oblique; margin:0 0 15px; padding:0; }
    .testimonial blockquote span { display:block; font-weight:700; margin:.3em 0 0; }
    </style>
    
  5. Click Save Page to save changes.

Back to Tips & Tricks