Slider Revolution and aspect ratio

Forums Easy FancyBox Pro Slider Revolution and aspect ratio

This topic contains 0 replies, has 2 voices, and was last updated by  Pharéo 2 years, 3 months ago.

  • Author
  • #8080

    Massimo Dal Bo

    hello, i’m working to the same but with iframe . The code i use ( fron revolution) is

    /* change revapi1 to whatever api number is being used for your slider */
    var api = revapi1;

    /* no need to edit below unless you want to change the default FancyBox settings */
    api.on(‘revolution.slide.onloaded’, function() {

    jQuery(this).find(‘.fancybox’).each(function() {

    var $this = jQuery(this);
    if(!$‘a’)) $this = $this.removeClass(‘fancybox’).find(‘a’);

    $this.addClass(‘fancybox fancybox.iframe’).attr(‘rel’, ‘gallery’).fancybox({

    /* begin FancyBox options */
    width: ‘auto’,
    height: ‘auto’,
    autoSize: true,
    aspectRatio: true,
    fitToView: true,
    autoCenter: true,
    scrolling: ‘no’,
    type: ‘iframe’,
    onClosed: function() {api.revresume()}

    }).on(‘click’, function() {api.revpause()});



    In my case only Easy FancyBox settings are acepted instead of this. The fancy box is not responsive.I need responsive.
    please visit:
    and click the “camera” bottom left
    otion are 100% width and height
    thank you

  • #8082


    Hi Massimo, the parameters you are using (like aspectRatio) are mostly for FancyBox 2. This plugin integrates FancyBox 1.3 which takes these parameters

    FancyBox 2 integration is planned but not there yet.

  • #8083

    Massimo Dal Bo

    Thanks, do you Know an other plugin for wordpress that integrates fancybox2?
    there is no way to have responsive layout in fancybox 1.3?

  • #8086


    do you Know an other plugin for wordpress that integrates fancybox2?

    Not one of the free ones as Fancybox 2 license is incompatible with GPL so it is not allowed on

    With responsive you mean that it keeps aspect ratio when resized? No that is not possible with this version. You’ll have to rely on the video player to do that as the Youtube player does. But that then leaves the black bars on the sides.

    You’ll have to wait for Fancybox2 integration into the Pro extension for a better match between the two… I cannot say when it will arrive, sorry.

The topic ‘Slider Revolution and aspect ratio’ is closed to new replies.