Simple Lightbox HTML – WordPress Development Stack Exchange

Question

I’m using WP All Import to maintain 3000 separate posts. The template is HTML-based. I’ve found that the Simple Lightbox plugin works if I set up my template html like so:

<a href="https://sitename.com/wp-content/uploads/{imagefilename[1]}" data-slb-active="1" data-slb-internal="0" data-slb-group="36"><img src="https://sitename.com/wp-content/uploads/{imagefilename[1]}" alt="" /></a>

I’m missing at least one bit of code, though. The not-unique asset number (?)…

 data-slb-asset="842492188"

Can I get away with not including it? Am I missing anything else important?

0
markw 1 month 2022-08-12T22:50:39-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse