Awesome q2a theme

Lightbox with a specific url?

0 like 0 dislike
39 views
How do you implement the addition of the url when opening the lightbox ? it is necessary to be able to refresh the page and stay in the lightbox as well as to share link in social networks , so when you click on it open lightbox to show your title and description
let's say my website site.com opened lightbox with the content - has become [email protected] or #titlepost
Example - https://theme-one.com/modulobox/demos/ or Articles in the VC
by | 39 views

1 Answer

0 like 0 dislike
In the data-id from pictures, store ID, for example. When you open the image in URL using JS add img_id=$ID. In the method ready when the page loads check for img_id in the URL and if there is, on the page look for the picture with this data-id and open it.
by

Related questions

0 like 0 dislike
1 answer
asked Apr 12, 2019 by cashloveyou
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
asked Apr 9, 2019 by NogerbekNurzhan
0 like 0 dislike
7 answers
110,608 questions
257,187 answers
0 comments
40,796 users