Hi
I’ve tried to create a modal window with a contact form following this instrucctions https://kriesi.at/support/topic/lightbox-for-mailchimp-form/#post-582439
The problem is that magnificPopup function is not declared anywhere.
¿There are an alternative method?
Any idea?
I’d solved this issue. Now the link doesn’t show the lightbox.
I’ve make this:
functions.php
add_action('wp_footer', 'ava_custom_lightbox');
function ava_custom_lightbox(){
?>
<div id="test-popup" class="white-popup mfp-hide">CONTENT GOES HERE</div>
<script type="text/javascript">
(function($) {
$(window).load(function() {
$('.open-popup-link').magnificPopup({
type:'inline',
midClick: true
});
});
})(jQuery);
</script>
style.css
.white-popup {
position: relative;
background: #FFF;
padding: 20px;
width: auto;
max-width: 500px;
margin: 20px auto;
}
Custom link at secondary menu
`#test-popup’
What’s wrong?
Hi,
Can you post a link to your site? so we can inspect further. You can place it in private content when you reply so only moderators can see it.
Best regards,
Nikko
Sorry, it works. It was my fault
Hi,
Glad you fixed it.
Best regards,
Nikko