Title: iframe
Last modified: August 30, 2016

---

# iframe

 *  Resolved [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/)
 * Hi
 * Thanks for your plugin!
    I have a question. I want to create a picture carousel.
   Every picture should open a popup with an iframe. In fact every picture should
   display to the visitor a panorama 360.
 * So my question is it is possible to open a popup/lightbox with iframe inside 
   when i click on pictures ?
 * Thanks
 * [https://wordpress.org/plugins/slidr/](https://wordpress.org/plugins/slidr/)

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Plugin Author [Giorgos Sarigiannidis](https://wordpress.org/support/users/gsarig/)
 * (@gsarig)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631317)
 * Hello,
 * Short answer: yes, but you need to do some coding yourself, since what you want
   is very specific.
 * Longer answer: as far as I can tell, you will need the following:
    1. You will have to create a custom loop to get your images and make each one of
       them to open a specific link when clicked ([see some custom loop examples](http://demos.gsarigiannidis.gr/loop/)).
    2. you will need some 3rd plugin for the iframe popup, unless you know how to create
       it your self
 * It’s not so easy if you are not comfortable with coding things your self, but
   if you do, Slidr is flexible enough to support such functionality.
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631397)
 * I found another solution. In inc/item_content.php of your plugin I addes a class
   fancybox here
 * `echo '<a href="' . $link . '" rel="bookmark"' . '" class="fancybox-inline"' .
   $aclass . '>';`
 * To solve my problem I just need to be able to have another url instead of $link
   to the url of the picture….
    But don^t know how to do that 🙁
 * If I could add manually the url I want in the field “description” of an image
   in the media section, it would perfect if instead of $link your function would
   read the descirption of the image…
 * Have you an idea?
 *  Plugin Author [Giorgos Sarigiannidis](https://wordpress.org/support/users/gsarig/)
 * (@gsarig)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631408)
 * Don’t mess with the plugin’s files just to add a class at the link. Slidr supports
   that anyway. Just add `link_class="my_class"` in the shortcode like that:
 * `[slidr link_class="my_class"]`
 * As for the other part, I’m afraid you can’t change the url without creating a
   custom loop. Each image should have its own url and you need to assign it somehow.
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631427)
 * oh ok ! thanks !
 * In fact…. i need a loop to retrieve the caption or descirption of the picture
   and use it instead of the image url….
 * I’ll check for a develper!
 * Thanks
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631433)
 * Ok i found how to do it… simply changing in shortcode.php this line
 * `$img_link = $a['gallery_link'] === 'attachment' ? get_attachment_link( $attachment-
   >ID ) : $media_url[0];`
 * like this
 * `$img_link = $a['gallery_link'] === 'attachment' ? get_attachment_link( $attachment-
   >ID ) : $attachment->post_content;`
 *  Plugin Author [Giorgos Sarigiannidis](https://wordpress.org/support/users/gsarig/)
 * (@gsarig)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631439)
 * I am glad you figured this out. You should keep this change, though, because 
   in the next plugin update it will get overwritten and you will need to add it
   again (that’s why I suggested the custom loop).
 * That’s an interesting idea, though – perhaps I could implement a similar functionality
   in the next update.
 * Thank you for your feedback!
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631545)
 * Thanks to you ! yes I know I’ll have to change it at every update!
    If you implement
   that it would be cool 😉
 * Thanks!
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631637)
 * Hi Giorgos
 * I finished the website [http://www.airwatchcenter.ch/test/](http://www.airwatchcenter.ch/test/)(
   temporary url)
    So you can see the result.
 * I just noticed that autoscroll is not working anymore 🙁 any idea? this is my
   shortcode
 * `[slidr gallery="160,161,135,136,137" speed="1500″ link_class="fancybox-inline"
   info_box=”no” height=”250″ cycle=”auto” size=”original” ]`
 * And last question : do you think there is a way to have one of the pictures (
   Rolex) in the middle of the screen when first load of the page?
 * Thanks a lot !!!
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631638)
 * any idea at least for the autscroll not working?
    hope to have your help
 *  Plugin Author [Giorgos Sarigiannidis](https://wordpress.org/support/users/gsarig/)
 * (@gsarig)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631639)
 * Sorry, I must have missed the email notification for your earlier message.
 * Well, your shortcode seems OK but from the source code of your page I can see
   that no autoscroll class has been added to the carousel.
 * Can you go to the plugins settings at Tools / Slidr and on the tab “Slidr Defaults”
   make sure that the option “Cycle Items” is set to “Autoscroll”?
 * If this doesn’t work, try to write the shortcode in a notepad and paste it as
   pure text in your post, just in case it took any malformed character during some
   copy/paste.
 *  Plugin Author [Giorgos Sarigiannidis](https://wordpress.org/support/users/gsarig/)
 * (@gsarig)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631640)
 * I am checking the code outputted in your HTML and apparently the speed isn’t 
   returned either. The code that you pasted above seems to have some differences
   between the quotes (check this screenshot: [http://i.imgur.com/oLiWIQj.png](http://i.imgur.com/oLiWIQj.png))
 * I believe that you should start from my second suggestion (fix malformed code).
 *  Thread Starter [fulviods](https://wordpress.org/support/users/fulviods/)
 * (@fulviods)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631641)
 * in fact you were right! it was the quotes !!! thanks a lot !!!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘iframe’ is closed to new replies.

 * ![](https://ps.w.org/slidr/assets/icon-256x256.jpg?rev=2841256)
 * [Slidr](https://wordpress.org/plugins/slidr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slidr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slidr/)
 * [Active Topics](https://wordpress.org/support/plugin/slidr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slidr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slidr/reviews/)

 * 12 replies
 * 2 participants
 * Last reply from: [fulviods](https://wordpress.org/support/users/fulviods/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/iframe-20/#post-6631641)
 * Status: resolved