Lightbox with a specific url?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 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 site.com@titlepost or #titlepost
Example - https://theme-one.com/modulobox/demos/ or Articles in the VC
by | 12 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 13, 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,186 answers
0 comments
35,649 users