WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Easy FancyBox] captions not showing

[Resolved] [Plugin: Easy FancyBox] captions not showing

  • deepbevel
    Member

    @deepbevel

    My image captions don’t appear in facnybox!
    actually I’m suprised it works at all in my set up, I have galleries generated by “media-categories” plugin. It allows images to be sorted by taxonomy. However it uses the wp gallery and modifies the shortcode with the taxonomy, in my cass I’m just usig “post_tag”

    [gallery post_tag="my-tag"]

    Would this interfere with captions?

    Also, I can’t get the title hover to work, and there’s an image counter which I can’t disable in settings.

    I have to make a regular wp gallery and see if I still have the problem.

    Also, is it possible to get image descriptions in Fancy box?. what about image meta? ..(maybe time for another thread? haha)

    thanks!

    http://www.foursticks.net/only-a-test/?page_id=3123

    http://wordpress.org/extend/plugins/easy-fancybox/

Viewing 5 replies - 1 through 5 (of 5 total)
  • deepbevel
    Member

    @deepbevel

    I found that the Portfolio Slideshow plugin was set to “load fancybox” which confused me, I thought it was using the fancybox plugin, but I guess it has it’s own? Anyway I turned that off and now I get the title overlay on hover.

    I think it was somehow using thickbox before I made the change, the image counter is now gone and the css/animation is now as expected.

    but still no captions..

    deepbevel
    Member

    @deepbevel

    found this, put in in my header and now captions appear instead of titles.

    <script>
    jQuery(document).ready(function($) {
    	jQuery( 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".gif"], a[href$=".png"]' ).each( function () {
    			var imageTitle = '';
    			if ( jQuery( this ).next().hasClass( 'wp-caption-text' ) ) {
    				imageTitle = jQuery( this ).next().text();
    			}
    
    			jQuery( this ).attr( 'title', imageTitle );
    		});
    	});
    </script>

    I discovred I can also use the “alt” tag as a caption area and it shows up without any extra script, but I think that would completely disable titles on images globally..? have to try it.

    but for now, issue resolved :}

    Plugin Author RavanH
    Participant

    @ravanh

    The Portfolio Slideshow plugin your are using seems to have FancyBox integrated and even though you have disabled it, there is still fancybox code in the portfolio-slideshow.min.js that is included. So you might still run into weird issues…

    In any case, there is no support for WordPress captions in Easy FancyBox but yes, if you can use the image alt attribute field and if you define no title attribute for the link, then that alt text will be used as title. But it is just a fallback. That option will not disable any other link titles globally.

    deepbevel
    Member

    @deepbevel

    Thanks, I’ll try that, will the alt method work with a gallery? So far the header script is doing as expected with no problems, but we shall see.
    Portfolio Slideshow has an option to not load it’s cyle library and disable JQuery, I’ll see what I can do with that if I have issues.

    Plugin Author RavanH
    Participant

    @ravanh

    I am not familiar with the Portfolio Slideshow plugin so I have no idea how it handles galleries and alt attributes… You’ll have to test 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] [Plugin: Easy FancyBox] captions not showing’ is closed to new replies.