• Resolved tubella

    (@tubella)


    Hi, Chris!

    When clicking on youtube preview image, it redirects to youtube website instead of playing right away on my website.

    What am I doing wrong?

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter tubella

    (@tubella)

    PS
    Can it be somehow related to https ? Because I don’t have this issue on my other websites, those without https.

    Plugin Author Chris

    (@zenation)

    Hi,
    it -shouldn’t- matter if it’s http or https. At least I don’t think so?!
    Have you tried the non-preview approach (just for the sake of testing)? Is it redirecting there, too?
    And do you have a sample URL I can take a look at?

    Thread Starter tubella

    (@tubella)

    Hi, thanks for your reply!

    Sure, I did try different settings: preview, non-preview, etc…same result.

    Here is a test page https://mzaryad.ru/youtube-test/
    plugin short code is [relatedYouTubeVideos relation=”keywords” terms=”monty python” showVideoTitle=”true” max=”1″ lang=”en” class=”center”]

    Also, as you can see there, YouTube Video tag appears without any reason…

    Thank you

    Plugin Author Chris

    (@zenation)

    You’re right, it is because of https/http.
    I thought I had fixed that a while ago (which is why I didn’t think this could be the reason – again).
    As it turns out I haven’t pushed the new version to the WordPress directory yet. I remember I was waiting for some feedback and must have forgotten about it.

    I hope this will do the trick, so would you mind installing this newer (beta) plugin version instead?

    https://drive.google.com/open?id=0BwfxKrUNhfSyVEtKUENUMWdjSjQ

    Thread Starter tubella

    (@tubella)

    Chris, awesome!

    The new version works perfectly!
    https issue solved!

    Thank you!

    If you develop other wordpress plugins, please, share a link.
    I’d love to use them!

    Thank you

    Plugin Author Chris

    (@zenation)

    You’re welcome, I’m glad it works ??

    Hello Chris, i cannot send you a private message so i ask you here.
    Im using this shortcode:
    [relatedYouTubeVideos relation=”keywords” terms=”my post term” max=”1″ lang=”es”]

    The video is not as big as i want. Please tell me if is it using “width and height”:

    [relatedYouTubeVideos relation=”keywords” terms=”my post term” max=”1″ lang=”es” class=”width-320″ “height-240”]

    Thanks a lot!

    Plugin Author Chris

    (@zenation)

    Hi,
    try this

    [relatedYouTubeVideos relation="keywords" terms="my post term" max="1" lang="es" width="320" height="240"]

    instead. Width and height can be their own attribute. If you have CSS classes with the names of “width-320” and “height-240” you should pack them both inside the class attribute like this:

    [relatedYouTubeVideos relation="keywords" terms="my post term" max="1" lang="es" class="width-320 height-240"]

    But I would go with the first approach.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Redirects to youtube instead of playing’ is closed to new replies.