Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Resize lightbox
(1 viewing) (1) Guest
"ARI Fancy Lightbox" WordPress plugin
Go to bottomPage: 1
TOPIC: Resize lightbox
#65034
Resize lightbox 5 Years, 7 Months ago Karma: 0
How to resize the content in a lightbox
(I'm talking about opening internal links in a lightbox)
Thanks
The administrator has disabled public write access.
 
#65039
Re:Resize lightbox 5 Years, 7 Months ago Karma: 760
Hello,

The following CSS rule can be added to "Custom CSS" parameter on "ARI Fancy Lightbox -> Settings -> Style" page to change lightbox size for all links which are opened into the lightbox:

Code:


.fancybox-slide--iframe .fancybox-content {
    width  : 800px;
    height : 600px;
    max-width  : 80%;
    max-height : 80%;
    margin: 0;
}



Another solution is adding the following code to "Custom JS code" parameter on "ARI Fancy Lightbox -> Settings -> Advanced" page:

Code:


$.fancybox.defaults.iframe.css = {width:'800px',height:'600px'};



Regards,
ARI Soft
The administrator has disabled public write access.
 
#66289
Re:Resize lightbox 4 Years, 8 Months ago Karma: 0
Hi,
I am really happy with using the fancybox lightbox. However, after moving a module to a child-theme suddenly the sizing of my lightbox is not working anymore.

Page: test.schasler.de/menschen/
Click on the image to open the lightbox.

Customization Code I use on the ARI Fancybox -> Settings -> Style Custom CSS field:

/*Set lightbox size*/
.fancybox-slide--iframe .fancybox-content {
width : 1000px;
height : 500 px;
max-width : 100%;
max-height : 100%;
margin: 0;
}
/*Set lightbox size on small screens*/
@media only screen and (max-width:1000px) {
.fancybox-slide--iframe .fancybox-content {
width : 500px;
height : 600px;
max-width : 100%;
max-height : 100%;
margin: 0;
}

Any hints would be appreciated!
The administrator has disabled public write access.
 
#66292
Re:Resize lightbox 4 Years, 8 Months ago Karma: 760
Hello,

Try the following code:

/*Set lightbox size*/
.fancybox-slide--iframe .fancybox-content {
width : 1000px;
height : 500px !important;
max-width : 100%;
max-height : 100%;
margin: 0;
}
/*Set lightbox size on small screens*/
@media only screen and (max-width:1000px) {
.fancybox-slide--iframe .fancybox-content {
width : 500px;
height : 600px !important;
max-width : 100%;
max-height : 100%;
margin: 0;
}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#66293
Re:Resize lightbox 4 Years, 8 Months ago Karma: 0
Ohh, such an easy solution. Thanks for the quick help. It works perfectly!
The administrator has disabled public write access.
 
Go to topPage: 1