Modal Popup Cannot Be Centered Or Sized - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Modal Popup Cannot Be Centered Or Sized

GS

Gurdip Singh

SP Page Builder 2 years ago

Hi. I have several modal popups in a grid on a page. The popup appears left aligned on the screen, tho I have specified center. Also, the width and height of the popup did not work, so I had to resize the images manually. The link to the page is in the hidden content section of this post.

Edited: See screenshot of the issue: https://paste.pics/NIOXE On the Joomla backend > SP Pagebuilder > page, the modal widget settings that the system is ignoring can be seen here: https://paste.pics/NIOYY

0
6 Answers
GS
Gurdip Singh
Accepted Answer
2 years ago #114609

Thank you.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #114348

Hi

Thanks for contacting us. Could you please give me a screenshot of your issue?

-Regards.

0
GS
Gurdip Singh
Accepted Answer
2 years ago #114353

Thanks for getting back on this. I have edited the original question with the required info.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #114356

Use this custom CSS

.mfp-content .popup-image-block{
        display: block !important;
}
#sppb-modal-1682259577888.popup-image-block img {
    width: 600px !important;
    height: 800px !important;
}

Path towards custom CSS: Extensions>Templates>Styles> Click on your current default template name then choose Template Options. Then find custom CSS within the custom code.

0
GS
Gurdip Singh
Accepted Answer
2 years ago #114364

Wonderful! Thank you, that worked.

One more thing: The clicked image appears correctly in the center, with a darkened background overlay. Normally, you can click on the background to get out of the popup mode, but that does not work here. I have to click the Close icon (X) to close it. Possible to add this functionality?

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 2 years ago #114542

Ok I will add it in our feature request list. You can now close this post by accepting the answer.

0