WordPress.org

Ready to get started?Download WordPress

Forums

Photospace Responsive Gallery
Remove Tooltips aka Titles? (3 posts)

  1. 2xUeL
    Member
    Posted 8 months ago #

    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/

  2. 2xUeL
    Member
    Posted 8 months ago #

    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.

  3. Sewing Geek Pattern
    Member
    Posted 7 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic