The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Easy FancyBox
[resolved] captions not showing (6 posts)

  1. deepbevel
    Posted 4 years ago #

    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)




  2. deepbevel
    Posted 4 years ago #

    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..

  3. deepbevel
    Posted 4 years ago #

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

    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 );

    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 :}

  4. RavanH
    Plugin Author

    Posted 4 years ago #

    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.

  5. deepbevel
    Posted 4 years ago #

    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.

  6. RavanH
    Plugin Author

    Posted 4 years ago #

    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 :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.