• Resolved Manu

    (@manuxx34)


    Hi man

    Just to let you know that adding a video from Youtube inside a review does not display it if you only use the url of the video. It shows the url in the frontend.

    Does work in a normal page.

    Using the Iframe code in a review works perfectly so not an issue for me but maybe you wanna know about it.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kemory Grubb

    (@w33zy)

    This is by design, if I was to change the code so that auto embeds work, it will introduce an infinite loop PHP error when reviews are embedded in regular WordPress posts.

    A better solution you could explore is to use the built in [video] shortcode. With this you get the default HTML video player that is style-able so you could match the colors of the video player to your theme.

    E.g. [video src="https://www.youtube.com/watch?v=nf9iZk5ZYRY"]

    Thread Starter Manu

    (@manuxx34)

    Hi Kemory since your reply I have been testing a lot cause although [video] looks great and is resposive the hits dont seem to count for Youtube and doesnt show the link to youtube in the player either. Seems more like for hosted videos no?

    The iframe code was a bit of a nightmare to make it responsive but finally this worked for me:

    <div style="position: relative; padding-bottom: 56.25%;"><iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://www.youtube.com/embed/_xWEL5W49mo" frameborder="0" allowfullscreen="allowfullscreen"></iframe></div>

    source https://cwestblog.com/2017/12/11/responsive-youtube-embed/

    Regards

    • This reply was modified 6 years, 6 months ago by Manu.
    • This reply was modified 6 years, 6 months ago by Manu.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Youtube video embed’ is closed to new replies.