Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #338520

    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?

    #339337

    Hi,

    Can you post the link to your website please?

    Regards,
    Josue

    #339408
    This reply has been marked as private.
    #339575

    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

    #340796

    That did it. Thank you! :)

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Main menu link open iframe in lightbox’ is closed to new replies.