Skip to main content
Known Participant
August 4, 2022
Answered

SVG vs Lightbox

  • August 4, 2022
  • 1 reply
  • 572 views

This isn't directly related to Illustrator, but I thought someone on this forum might have an answer.

I installed a Lightbox plugin on one of my WordPress websites. If you add rel="Lightbox" to an image link, when someone clicks on the image, they see a bigger version that fills the entire screen.

The only problem is, it doesn't work with SVG images. Does anyone know how to make SVG images respond to Lightbox, or how to do something similar with them?

I had to stop using SVG images in my epubs, but I was hoping I could continue using them on my websites. 😉

This topic has been closed for replies.
Correct answer Anubhav M

Hello @Geobop,

 

Thanks for reaching out. Here is what I found concerning your question  on the web:

https://wordpress.org/support/topic/svg-support-13/

 

There is a proposed solution on the page where you could place the SVG in a DIV element and then use that to be placed in Lightbox.

 

Kindly update this thread if you need further assistance. We'd be happy to help.

 

Thanks,

Anubhav

 

1 reply

Anubhav M
Community Manager
Anubhav MCommunity ManagerCorrect answer
Community Manager
August 4, 2022

Hello @Geobop,

 

Thanks for reaching out. Here is what I found concerning your question  on the web:

https://wordpress.org/support/topic/svg-support-13/

 

There is a proposed solution on the page where you could place the SVG in a DIV element and then use that to be placed in Lightbox.

 

Kindly update this thread if you need further assistance. We'd be happy to help.

 

Thanks,

Anubhav

 

GeobopAuthor
Known Participant
August 4, 2022

Hmmm... It sounds like I'd better convert my SVG images to JPGs. Thank you for the tip.