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. Bug Reports
  3. iframe carousel

iframe carousel

Scheduled Pinned Locked Moved Bug Reports
11 Posts 3 Posters 2.6k 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.
  • mariusjopenM Offline
    mariusjopenM Offline
    mariusjopen
    Global Moderator
    wrote on last edited by
    #2

    Hi @andrea

    if you use this Custom CSS code it could work:

    .slide-text iframe {
        width: 100%;
        height: 100%;
    }
    
    .slide-text p {
        height: 100%;
    }
    
    .slide-text {
        height: 100%;
    }
    

    0_1517699277091_Bildschirmfoto 2018-02-03 um 20.07.36.png Many wishes!

    Marius

    www.mariusjopen.world

    1 Reply Last reply
    1
    • A Offline
      A Offline
      andrea
      wrote on last edited by
      #3

      Hello Marius,

      thank you so much for your advise, now the video in the caroulsel follow the dimensions of the other pictures! Now the problem is that once you arrive at the video (scrolling the caroulsel) you no longer have the left-right arrows because the css video attributes are more important, so clicking you just pause/play the video and you can't move on the carousel. Do you know how can I solve this problem?

      Thank you so much againg.
      Have a nice day,

      Andrea

      1 Reply Last reply
      0
      • mariusjopenM Offline
        mariusjopenM Offline
        mariusjopen
        Global Moderator
        wrote on last edited by
        #4

        Hi Andrea,

        right. I did not think about that.
        You can make the video autoplay (you can do that in the youtube url)
        And then make the following:

        iframe {
         pointer-events: none;
        }
        

        Let me know if that works.

        All the best!

        Marius

        www.mariusjopen.world

        A 1 Reply Last reply
        1
        • mariusjopenM mariusjopen

          Hi Andrea,

          right. I did not think about that.
          You can make the video autoplay (you can do that in the youtube url)
          And then make the following:

          iframe {
           pointer-events: none;
          }
          

          Let me know if that works.

          All the best!

          Marius

          A Offline
          A Offline
          andrea
          wrote on last edited by
          #5

          @mariusjopen
          Hi Marius,

          it works, you're a genius! Now I have a last question. The video is the third element inside the carousel, so you don't see it immediately when the page is loaded. The problem is that it starts immediately when the page is loaded so when you arrive at the video, scrolling the carousel, it's already half-done. Is there a way to make it play automatically jut when it is visible?

          Thank you so much again!
          Andrea

          1 Reply Last reply
          0
          • mariusjopenM Offline
            mariusjopenM Offline
            mariusjopen
            Global Moderator
            wrote on last edited by
            #6

            Dear @andrea
            that's a tricky one.

            You might need to dig into jQuery to make this happen.
            You know some jQuery?

            Best!

            Marius

            www.mariusjopen.world

            A 1 Reply Last reply
            0
            • mariusjopenM mariusjopen

              Dear @andrea
              that's a tricky one.

              You might need to dig into jQuery to make this happen.
              You know some jQuery?

              Best!

              Marius

              A Offline
              A Offline
              andrea
              wrote on last edited by
              #7

              @mariusjopen
              I used it long ago, I remember something, I can try. Do you already have an idea for solve that issue?

              Thanks!
              Andrea

              1 Reply Last reply
              0
              • mariusjopenM Offline
                mariusjopenM Offline
                mariusjopen
                Global Moderator
                wrote on last edited by
                #8

                Dear @andrea
                I think it will be too difficult.

                You need to read which slide of the carousel is active. And if it is active you need to make a call that the video within the slide starts to play automatically.

                Quite tricky – even for us.

                Can't you upload a video instead of using Youtube?

                Best!

                Marius

                www.mariusjopen.world

                A 1 Reply Last reply
                0
                • mariusjopenM mariusjopen

                  Dear @andrea
                  I think it will be too difficult.

                  You need to read which slide of the carousel is active. And if it is active you need to make a call that the video within the slide starts to play automatically.

                  Quite tricky – even for us.

                  Can't you upload a video instead of using Youtube?

                  Best!

                  Marius

                  A Offline
                  A Offline
                  andrea
                  wrote on last edited by
                  #9

                  @mariusjopen
                  Hey sorry, I couldn't see Laytheme forum for a while, I don't know why. Ok, I give up, it's not a proble, thank you so much for your support.
                  I had to add "autopause=0" in the iframe because otherwise I couldn't have more than one video in autoplay (from Vimeo) in the page. Now everything works... in Chrome. In Safari, however, the videos don't start automatically (even if they have no audio track and if I check "allow all autoplay" in the Safari's preferences. Do you know what could be the problem? The website is www.andreaguccini.com/works

                  Thank you!
                  Andrea

                  1 Reply Last reply
                  0
                  • mariusjopenM Offline
                    mariusjopenM Offline
                    mariusjopen
                    Global Moderator
                    wrote on last edited by
                    #10

                    Dear @andrea
                    yes. I can see it is not working here on this projects on Safari:
                    0_1522166691292_Bildschirmfoto 2018-03-27 um 18.04.22.png

                    We will look into that!

                    All the best!

                    Marius

                    www.mariusjopen.world

                    1 Reply Last reply
                    0
                    • arminunruhA Offline
                      arminunruhA Offline
                      arminunruh
                      Global Moderator
                      wrote on last edited by
                      #11

                      hey ok afaik videos will not autoplay if they have audio, even if the video does not have audio, you will still need a "muted" attribute at least for html5 videos. maybe there is a muted attribute you can pass to the iframe like &muted=1 not sure!

                      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
                      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