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.5k 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.
  • arminunruhA Offline
    arminunruhA Offline
    arminunruh
    Global Moderator
    wrote on 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 last edited by acmarion
      #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
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on 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 BaptisteB 2 Replies Last reply
        1
        • arminunruhA arminunruh

          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 last edited by
          #6

          @arminunruh Thank you!

          1 Reply Last reply
          0
          • C Offline
            C Offline
            CharlotteG
            wrote on 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
            0
            • C CharlotteG

              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 last edited by acmarion
              #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
              1
              • RichardR Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on 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
                2
                • RichardR Richard

                  Dear @acmarion

                  Amazing! :)

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

                  Sincerely
                  Richard

                  A Offline
                  A Offline
                  acmarion
                  wrote on last edited by
                  #10

                  @Richard-Keith Of course!

                  1 Reply Last reply
                  0
                  • arminunruhA arminunruh

                    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!

                    BaptisteB Offline
                    BaptisteB Offline
                    Baptiste
                    wrote on last edited by
                    #11

                    @arminunruh Looking forward to do this too with the carousel šŸ™

                    1 Reply Last reply
                    0
                    • A acmarion

                      @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 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
                      A
                      alasdair17
                      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