I'm trying to get the above to work in my album.
The idea being that it's an album of photos of paintings, each has a description which might be quite long.
In the comments section I want to put a link to the description using magnific popup so that the description pops up on top of the page in a transparent window. you can still see the photo whilst reading the description.
I have added the script to the site- custom code - head and body sections and when the pages are generated they have the correct code added to them (exactly the same as other pages on the site where this works just fine)
However when clicking the link it just opens a new browser window.
<a class="icon-info btn" onclick="handleClick()">more details</a>
Ink and water-colours on cloud dragon paper<br>
19 x 182.4 cm<br>
With three seals of the artist, 水松石山房 <em>Shuisongshi shanfang</em> (‘Water, Pine and Stone Retreat’), 竹虛老人 <em>Zhuxu laoren</em> (‘Old man as Empty Inside as Bamboo), and 山外山樵 <em>Shanwai shanqiao</em> (‘The mountain woodcutter who is not in the mountains’).</p>
Inscribed for Jana by the Master of the Water, Pine and Stone Retreat as a gift for the New Year in January 2019.</p>
3. However if you have already created all these external HTML files it's easier just adding them through IFRAME's:
Add this code in the "Tiger / Site / Custom code / CSS" box: