Hello everyone,
It used to work just fine without any problems, but since the update of 3.0.1 it stopped working again. I used to have a button in my main menu where when clicked it opened an external page in a lightbox iframe.
Before it update it was just: url?iframe=true&width=960&height=650.
Then in link relationship (XFN) = prettyPhoto
And that worked perfectly before I updated to the latest version. Need a fix asap! :S
Then i read that just for normal links do: url?iframe=true, but that doesn’t work at all for main menu link. What to do to get iframe working on a main menu link?
Hi,
Can you post the link to your website please?
Regards,
Josue
Hi,
Try adding this at the very end of your theme functions.php file:
function add_custom_script(){
?>
<script>
jQuery(window).load(function(){
jQuery("#avia-menu").magnificPopup({
delegate: "a[href*='iframe=true']",
type: 'iframe',
preloader: false,
});
});
</script>
<?php
}
add_action('wp_footer', 'add_custom_script');
Regards,
Josue
That did it. Thank you! :)