Open DeoThemes opened 8 years ago
If you have a variable with name(href) of a project than insert it to the link tag:
var srcCurrentProject = '/project.html', linkToProjectHTML = '<a href="' + linkToCurrentProject + '">'+ <div class="mfp-img"></div>'+ '</a>'
If you have a variable with name(href) of a project than insert it to the link tag: var srcCurrentProject = '/project.html', linkToProjectHTML = ''+ '+ ''
Thanks for the try, but I can't make it working. And my project link can be always different, depending what slide is on the display.
Thanks.
Show your code.
Hello,
I was trying to make it by myself, but don't have enough JS knowledge. So basically I have simple image gallery and after popup opens the image should be a link to a single project page.
The project page can be project-1.html, project-2.html etc. so it's dynamic and that's where I stuck. I tried to add custom markup like `''+
'+ '' ` But how to make this link dynamic, based on what slide is opened. Any help would be appreciated, Thanks.