Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Setting (max) widths on certain/specified Fancybox overlays. Reply To: Setting (max) widths on certain/specified Fancybox overlays.

#247220
grimski
Participant

Yes it’s a lot tricker than I thought it would be haha!

That beforeLoad looks like it works great though! I tried amending it to:

beforeLoad: function() {
    if ($(this.element).hasClass('small')) this.maxWidth = '640';
}

Which looks like it works as well!