-
AuthorPosts
-
June 26, 2018 at 4:49 pm #978012
Hi all,
is it possible to have an SVG file ‘zoom’ as/per a regular image in the Enfold Mason Gallery?June 27, 2018 at 4:15 pm #978471Anyone?
June 27, 2018 at 11:42 pm #978614Hi,
Have you tried to upload an image?
Best regards,
BasilisJune 28, 2018 at 10:42 am #978824Hi,
images work fine – but SVG’s don’t zoom.Example of working images here: https://highgrounddesign.co.uk/hd/brochure-design-portfolio/
Example of non-working SVG’s here: https://highgrounddesign.co.uk/hd/logo-design-portfolio/
I just wondered if the SVG’s could be zoomed?
July 2, 2018 at 8:12 am #979980Hi,
Thanks for the update.
Did you remove the svg images? I can’t find them in the page.
Best regards,
IsmaelJuly 2, 2018 at 12:48 pm #980066Hi, yes I did – I gave up in the end.
July 3, 2018 at 5:30 am #980385Hi,
I see. Would you mind creating a test page so that we can inspect the issue?
Best regards,
IsmaelJuly 3, 2018 at 10:53 am #980486Sure, I’ve created this page, the picture on the left zooms, the picture on the right (the SVG) doesn’t :
July 4, 2018 at 2:25 am #980844Hi,
The svg image zooms in on hover just like the regular image on the left. Where are you testing this? I’m on Chrome Windows 8.
Best regards,
IsmaelJuly 4, 2018 at 12:56 pm #981144Hi, zoom as in when clicked.
If you click the picture file that presents a zoomed picture (modal box picture zoom in essence), the SVG loads the file and seems to ignore the conditions?
July 5, 2018 at 11:54 am #981538Hi,
I see. The MagnificPopup script doesn’t support svg files, unfortunately.
// https://github.com/dimsemenov/Magnific-Popup/issues/670
You can try and modify the js > avia-snippet-lightbox.js file. Look for this code around line 131:
autolinkElements: 'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',
Add an svg support. I’m not sure if it’s going to work though because the parent script doesn’t seem to accept svg by default.
autolinkElements: 'a.lightbox, a[rel^="prettyPhoto"], a[rel^="lightbox"], a[href$=svg], a[href$=jpg], a[href$=png], a[href$=gif], a[href$=jpeg], a[href*=".jpg?"], a[href*=".png?"], a[href*=".gif?"], a[href*=".jpeg?"], a[href$=".mov"] , a[href$=".swf"] , a:regex(href, .vimeo\.com/[0-9]) , a[href*="youtube.com/watch"] , a[href*="screenr.com"], a[href*="iframe=true"]',
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.