November 7, 2014 at 8:18 pm #347911November 8, 2014 at 12:53 am #348015
Try adding this to the bottom of your functions.php file.
And then for your link make sure the rel attribute (the link relationship XFN you were referring to) is set to magnific and the URL is set to the ID of whatever element you want to display in the popup.
<div id = "form_popup" style = "color: white;">Testing</div> <a href = "#form_popup" rel = "magnific">Click me</a>
November 8, 2014 at 7:24 am #348091
- This reply was modified 9 years, 1 month ago by Elliott.
Great stuff thanks! For the benefit of anyone else trying something similar, I had to ensure I added some classes to the content div aswell:
<div class=”white-popup mfp-hide”>my inline content</div>
margin: 20px auto;
The mfp-hide is a magnificpopup built in class, but it’s important to include it. It took me a while to figure out I needed that rather than style=”display:none;” which I had before but meant the popup didn’t work.
MattNovember 9, 2014 at 8:26 pm #348439
- The topic ‘Menu link to open content in new lightbox (magnific popup)’ is closed to new replies.