hugo-casper-two icon indicating copy to clipboard operation
hugo-casper-two copied to clipboard

Youtube Videos not showing up

Open saifulmuhajir opened this issue 7 years ago • 5 comments

Using singleViewStyle = "casper" causing Youtube videos not showing up on single post view. On the other hand, putting "caspertwo" showing Youtube videos just fine.

saifulmuhajir avatar Mar 17 '18 08:03 saifulmuhajir

I've got the same issue @eueung -- any idea how we can fix this issue? Thanks!

shah avatar May 20 '18 00:05 shah

@eueung I´d appreciate if you could share any thoughts. I´m facing the same issue. Thanks a lot.

rguske avatar Jul 25 '18 21:07 rguske

I am having this issue too. As a workaround I have created my own shortcode for youtube in the meanwhile in case anyone wants to use:

I created this layout/shortcodes/yt.html:

  <iframe src="https://www.youtube.com/embed/{{ index .Params 0 }}?start={{ index .Params 1 }}"
  style="position: absolute; top: 0; left: 0; width: 560; height: 315;" allowfullscreen frameborder="0" title="YouTube Video"></iframe>

Which creates a new shortcode called yt so I use it like this:

{{< yt adfadadaa >}}

softinio avatar Jul 30 '18 04:07 softinio

Awesome @softinio! I immediately tried it out and it works smoothly! Thanks a lot for this! FYI @eueung @shah @saifulmuhajir

rguske avatar Jul 30 '18 21:07 rguske

I'm also having this issue. I've looked in devtools and the shortcode is working as the iframe is present in the markup.

I assume this is a styling issue.

timhere avatar Oct 10 '18 15:10 timhere