Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #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?



    Can you post the link to your website please?


    This reply has been marked as private.


    Try adding this at the very end of your theme functions.php file:

    function add_custom_script(){
                    delegate: "a[href*='iframe=true']",
    		type: 'iframe',
    		preloader: false,
    add_action('wp_footer', 'add_custom_script');



    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.