Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Vimeo video (iframe) in Carousel: Swipe not working on mobile

Vimeo video (iframe) in Carousel: Swipe not working on mobile

Scheduled Pinned Locked Moved General Discussion
12 Posts 7 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    arminunruh
    Global Moderator
    wrote on Mar 13, 2020, 1:08 PM last edited by
    #3

    As far as I know you cannot put a vimeo video inside of a carousel.

    Ok you did so using an iframe in a text element.

    An iframe is like a new website that is embedded in your website.
    Thats why the swiping events are triggered inside the embed, not in the carousel. You could place an invisible div on top of the vimeo video. This way the swipe events should work correctly.
    However, you'd probably need to make the vimeo videos autoplay.

    Better to just use a html5 video as a carousel element!
    Why do you want to use a vimeo video?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      acmarion
      wrote on Mar 14, 2020, 4:18 PM last edited by acmarion Mar 14, 2020, 12:19 PM
      #4

      Hi @arminunruh thanks for your reply.

      I was using vimeo because I was thinking it would make the website load faster since it's hosted on the vimeo server instead of mine. I liked the fact that I could upload heavy Hi-res videos and that vimeo will automatically play the resolution that is best suited for the user's connection.

      Also I liked the fact that I was able to only have the play button and fullscreen icon displaying without needing to customize the player that much.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        arminunruh
        Global Moderator
        wrote on Mar 18, 2020, 5:15 PM last edited by
        #5

        Sure!

        You're right, it would load better.
        Well well I will write this down as a good idea for the carousel and will work on it one day!

        A B 2 Replies Last reply Mar 23, 2020, 6:28 PM
        1
        • A arminunruh
          Mar 18, 2020, 5:15 PM

          Sure!

          You're right, it would load better.
          Well well I will write this down as a good idea for the carousel and will work on it one day!

          A Offline
          A Offline
          acmarion
          wrote on Mar 23, 2020, 6:28 PM last edited by
          #6

          @arminunruh Thank you!

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CharlotteG
            wrote on Jun 7, 2020, 8:44 PM last edited by
            #7

            Hi @acmarion

            your website looks great! I was searching for exactly the same carousel option — embedding Vimeo links via iframe in a the source code of a text element. Would you like to share the iframe text code that you used? That would be awesome. It seems to not be working for me and I am not sure what I have been doing wrong.

            thanks!

            A 1 Reply Last reply Jul 30, 2020, 6:24 PM
            0
            • C CharlotteG
              Jun 7, 2020, 8:44 PM

              Hi @acmarion

              your website looks great! I was searching for exactly the same carousel option — embedding Vimeo links via iframe in a the source code of a text element. Would you like to share the iframe text code that you used? That would be awesome. It seems to not be working for me and I am not sure what I have been doing wrong.

              thanks!

              A Offline
              A Offline
              acmarion
              wrote on Jul 30, 2020, 6:24 PM last edited by acmarion Jul 30, 2020, 2:24 PM
              #8

              @CharlotteG Hi, sorry I just saw this here is the code I put in the custom html

              /* Carousel full page */
              .slide-inner {
                  max-width: 85%;
                  margin: auto;
              }
              
              /* Carousel vimeo Video full size */
              .lay-carousel .slide-text {
              padding-left: 0;
              padding-right: 0; }
              
              .slide-text iframe {
                  width: 100%;
                  height: 100%;
              }
              
              .slide-text p {
                  height: 100%;
              }
              
              .slide-text {
                  height: 100%;
              }
              

              and then an example of what you put in the carousel image html box:

              <p><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://player.vimeo.com/video/395113197" frameborder="0" allowfullscreen=""></iframe></p>
              

              Hope this helps!

              T 1 Reply Last reply May 20, 2021, 12:14 PM
              1
              • R Offline
                R Offline
                Richard
                Global Moderator
                wrote on Aug 4, 2020, 4:16 PM last edited by
                #9

                Dear @acmarion

                Amazing! :)

                Thank you so much for helping to build a stronger community.

                Sincerely
                Richard

                A 1 Reply Last reply Aug 5, 2020, 8:51 PM
                2
                • R Richard
                  Aug 4, 2020, 4:16 PM

                  Dear @acmarion

                  Amazing! :)

                  Thank you so much for helping to build a stronger community.

                  Sincerely
                  Richard

                  A Offline
                  A Offline
                  acmarion
                  wrote on Aug 5, 2020, 8:51 PM last edited by
                  #10

                  @Richard-Keith Of course!

                  1 Reply Last reply
                  0
                  • A arminunruh
                    Mar 18, 2020, 5:15 PM

                    Sure!

                    You're right, it would load better.
                    Well well I will write this down as a good idea for the carousel and will work on it one day!

                    B Offline
                    B Offline
                    Baptiste
                    wrote on Dec 19, 2020, 9:38 AM last edited by
                    #11

                    @arminunruh Looking forward to do this too with the carousel 🙏

                    1 Reply Last reply
                    0
                    • A acmarion
                      Jul 30, 2020, 6:24 PM

                      @CharlotteG Hi, sorry I just saw this here is the code I put in the custom html

                      /* Carousel full page */
                      .slide-inner {
                          max-width: 85%;
                          margin: auto;
                      }
                      
                      /* Carousel vimeo Video full size */
                      .lay-carousel .slide-text {
                      padding-left: 0;
                      padding-right: 0; }
                      
                      .slide-text iframe {
                          width: 100%;
                          height: 100%;
                      }
                      
                      .slide-text p {
                          height: 100%;
                      }
                      
                      .slide-text {
                          height: 100%;
                      }
                      

                      and then an example of what you put in the carousel image html box:

                      <p><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://player.vimeo.com/video/395113197" frameborder="0" allowfullscreen=""></iframe></p>
                      

                      Hope this helps!

                      T Offline
                      T Offline
                      tali
                      wrote on May 20, 2021, 12:14 PM last edited by
                      #12

                      @acmarion thank you for sharing :) I would like to use it but I dont understand where to add the code on the carousel.. could you tell me where does it go? I would appreciate it a lot :)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      I also code custom websites or custom Lay features.
                      💿 Email me here: 💿
                      info@laytheme.com

                      Before you post:
                      1. When using a WordPress Cache plugin, disable it or clear your cache.
                      2. Update Lay Theme and all Lay Theme Addons
                      3. Disable all Plugins
                      4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

                      This often solves issues you might run into

                      When you post:
                      1. Post a link to where the problem is
                      2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
                      3. If the problem is difficult to explain, post screenshots / link to a video to explain it
                      Online Users
                      L
                      leili
                      about a minute ago
                      Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
                      laytheme.com
                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search