Hi...

How could I custom the modal window in the Lightbox2?

Basically, I want to remove the 'View Image Details' link

Thanks,
Pedro

Comments

dddave’s picture

Are you using the lite version?

I think the normal version has options for this on the lightbox settingspage so that you don't need to modify anything.

araujo.guntin’s picture

No, I'm not using the lite version. Beside, I'd like to put the body with the image in the modal window.

jefftrnr’s picture

I'm using the user-login lightbox2 feature which launches the user-login within the modal window. Other than using form_alter changes, I'm also having trouble finding a way to customize the html and modalContainer window size... That width and height seem to be hard-coded in the lightbox_modal.js file. Is there a way to override these settings?

trentharlem’s picture

To modify your modal lightboxes you'll want to tweek this line...

rel: 'lightmodal[|width:520px; height:480px;]'

in your lightbox_modal.js file (currently @ line 18).

Adding/modifying the width settings in lightbox.css
ie. #outerImageContainer, #modalContainer, and #imageDataContainer may also be helpful.