How I created the ToolTip Testimonial Popup

A client asked me about the testimonial popup featured over at Studio Press. When you hover over a picture at the top of our site your will see a tool tip appear.

I looked at the site and figured it was a custom js script to activate tooltip function from jQuery TOOLS. I then dropped Brian an email and asked if he did anything special (special as in custom post types etc…) besides just manually building out the section. He emailed me back and said NOPE, nothing special and here is the example file that is hooked into that section. I should mention how freaking awesome it is that Brian directly emails back and not some auto-responder response or no response at all.

Here is my testimonials.php file – create your own file and then mirror my code (use your own pictures and testimonials)

[php] <div id="testimonials">
<div class="wrap">
<h4>What They Say About Your Local Tech</h4>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="Loren from Your Local Tech Rocks! He’s my Hero! " alt="Linsey Planeta" /></p>
<p class="testimonials-title">Linsey Planeta</p>
<p class="company">RE Broker/Coach, Orange County, CA</p>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="Loren is a Freakin ROCK STAR!" alt="Steve Zenghut" /></p>
<p class="testimonials-title">Steve Zenghut</p>
<p class="company">Zeek Interactive</p>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="Customer Support Gurus, Good Looking as well" alt="Jeff Turner" /></p>
<p class="testimonials-title">Jeff Turner</p>
<p class="company">Zeek/Real Estate Shows/MFFO</p>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="Loren opened my eyes to WordPress and taught me how to do a lot on my own." alt="Irina Netchaev" /></p>
<p class="testimonials-title">Irina Netchaev</p>
<p class="company">Pasadena Views</p>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="When I need Tech Help or WordPress help I call Your Local Tech" alt="Bob Watson" /></p>
<p class="testimonials-title">Bob Watson</p>
<p class="company">SMMOC / Watson and Associates / and more</p>
<div class="testimonials">
<p class="center"><img class="frame" src="" title="Awesome Dude, Decent at Karaoke. Did I mention he was cool." alt="Rob Hahn" /></p>
<p class="testimonials-title">Rob Hahn</p>
<p class="company">The Notorious R.O.B.</p>

Here is my custom.js

[code lang=”js”]

jQuery("#testimonials img[title]").tooltip({

// tweak the position
offset: [0, 0],

// use the "slide" effect
effect: ‘slide’

// add dynamic plugin with optional configuration for bottom edge
}).dynamic({ bottom: { direction: ‘down’, bounce: true } });


Here is how I setup my functions.php
Besides adding jQuery TOOLs and hooking in my (StudioPress’s) custom JS code I also unhooked jQuery and then called it from Google API. Also in this bit of my functions is where I hook in the testimonials.php right after header.
add_action( ‘genesis_after_header’, ‘testimonials’ );

function testimonials() {
include (‘testimonials.php’);

add_action(‘wp_enqueue_scripts’, ‘custom_enqueue_scripts’);
function custom_enqueue_scripts() {
if (!is_admin()) {

// load the local copy of jQuery in the footer
//wp_register_script(‘jquery’, ‘/wp-includes/js/jquery/jquery.js’, false, ‘1.7.2’, true);

// or load the Google API copy in the footer
wp_register_script(‘jquery’, ‘’, ‘1.7.2’, true);

wp_register_script(‘jquery_tools’, ‘’, ‘jquery’, ‘3.4.1’, true);

wp_register_script(‘tooltip’, get_stylesheet_directory_uri() . ‘/lib/custom.js’, ‘jquery’, ‘1’, true);


  1. Mike on July 10, 2012 at 9:46 pm

    LOve it!

  2. Loren Nason on July 10, 2012 at 9:47 pm

    I presented this last night at the OCWP meetup …. Steve got a good laugh from his “testimonial”

  3. Alex on July 11, 2012 at 8:34 am

    Nicely done, dude. I may have to snag this one from you. =)

  4. Hotel Jesolo on July 12, 2012 at 1:33 pm

    Yes, a very good job!
    It will be perfect with the CSS!


  5. Hotel Jesolo on July 13, 2012 at 5:35 am


    I tested your script and it’s very good. But the loading of jquerytools seems to be not compatible with Genesis Responsive Slider!!

  6. lorennason on July 13, 2012 at 7:19 pm

    You can just open my style.css and copy my css
    Not sure what the conflict would be with Genesis Responsive Slider … it uses flexslider.js

Leave a Comment