Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
870 views
in Plugins by
Is there a plugin to zoom the image?
Q2A version: 1.8.1

1 Answer

+2 votes
by
by
I saw this, tried it, but it didn't work
by
I have created a pull request for this on github:
https://github.com/q2apro/q2apro-lightbox-images/pull/3/commits/1a5fc4ab30a3cac79cab3a31a92e2d7bfb7bb35d
just update this file and see if it works for you.
by
This plugin does not magnify the image but only darkens the background
by
you could add transform: scale(2); to the css.
In this line https://github.com/q2apro/q2apro-lightbox-images/blob/master/script.js#L18 change img#lightbox-img { padding:25px; background:#FFF } to img#lightbox-img { padding:25px; background:#FFF; transform: scale(2); }
by
Thank you for answer,

I tried it, it worked on the classic theme but it didn't work on the theme I used (dude theme), how can I find the source of the problem?
by
First in Dude theme, you can check if such Css elements exist. You can view your site normally with Desktop Google Chrome or Firefox and inspect the image elements.

If such elements exist in Dude theme's CSS files, you need to adjust so those elements in CSS files and JS files don't overlap.
by
I have reviewed the css and js files, but there is no such item, what else can it be?

Welcome to the Q&A site for Question2Answer.

If you have a question about Q2A, please ask here, in English.

To report a bug, please create a new issue on Github or ask a question here with the bug tag.

If you just want to try Q2A, please use the demo site.

Categories

...