Support » Plugin: Photospace Responsive Gallery » Remove Tooltips aka Titles?

  • Been snooping around photospace-responsive.php trying to figure out how to do this. I changed the following code:

    $output_buffer .='
    	<li><a class="thumb" href="' . $img[0] . '" title="' . $image_title . '" >
    		<img src="' . $thumb[0] . '" alt="' . $image_alttext . '" title="' . $image_title . '" />
    	</a>
    ';

    to this:

    $output_buffer .='
    	<li><a class="thumb" href="' . $img[0] . '" >
    		<img src="' . $thumb[0] . '" alt="' . $image_alttext . '" />
    	</a>
    ';

    (bascially removed ” title=”‘ . $image_title . ‘), and I got the tooltips to go away for the thumbnails but now the tooltip for the main image says “undefined”…? I’m pretty much just a hack so any advice on how to fix this properly would be awesome. Thanks!
    http://wordpress.org/plugins/photospace-responsive/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter 2xUeL

    (@2xuel)

    I figured this out. I went into jquery.galleriffic.js and changed the following code:

    if(isSync){
    
    // Construct new hidden span for the image
    var newSlide = this.$imageContainer
    .append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[nextIndex].hash+'" title="'+imageData.title+'"> </a></span>')
    .find('span.current').css('opacity', '0');
    
    }else{
    
    //  *** photospace update - replace append with html to stop multiple images in fast clicks ***
    var newSlide = this.$imageContainer
    .html('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[nextIndex].hash+'" title="'+imageData.title+'"> </a></span>')
    .find('span.current').css('opacity', '0');
    }

    to this:

    if(isSync){
    
    // Construct new hidden span for the image
    var newSlide = this.$imageContainer
    .append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[nextIndex].hash+'"> </a></span>')
    .find('span.current').css('opacity', '0');
    
    }else{
    
    //  *** photospace update - replace append with html to stop multiple images in fast clicks ***
    var newSlide = this.$imageContainer
    .html('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[nextIndex].hash+'"> </a></span>')
    .find('span.current').css('opacity', '0');
    }

    (removed title=”‘+imageData.title+'” from link html). That got rid of the tooltip for the main image.

    You are awesome. Thank you! the tooltips were driving me nuts. 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove Tooltips aka Titles?’ is closed to new replies.