Is it possible to change position of jquery lightbox image pop up window

Q: Hello! I have a question, is it possible to reposition the pop up window when the imageis clicked from a gallery?

A: You can reposition image popup window in the following way.
Open engine/js/visuallightbox.js file and find the following code:

var imgTop = getPageScroll().y + (getPageSize().winHeight -
(imgHeight + descriptionHeight + options.borderSize * 2)) / 2;



change it for example to:

var imgTop = getPageScroll().y + (getPageSize().winHeight -
(imgHeight + descriptionHeight + options.borderSize * 2)) / 2 - 100;

Related