Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #290769

    Hey Guys!
    Could you please tell me if there’s a way to open a vitual tour in a lightbox instead of opening in a new window.
    For example there’s a link for my virtual tour gallery and a link for a sample tour so you can try to connect any image with the sample tour link and test if its opening in lightbox or not or you can check on my website.

    I want to connect these images with the tour’s links and open them in a lightbox without leaving my website.
    I have tried getting help from these links but nothing seems working for me..

    http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/#prettyPhoto

    http://www.ehow.com/how_10026538_to-lightbox-display-webpage.html

    Thanks a lot.

    #291227

    Hi,

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

    function add_custom_script(){
    ?>
    <script>
    jQuery(window).load(function(){
      jQuery('a[href*="/360tours"]').magnificPopup({
        type: 'iframe'  
      });	       
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Regards,
    Josue

    #291489

    WoW.. its working perfectly fine thanks a lot man.. :)

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Open Virtual Tours in Lightbox’ is closed to new replies.