• Resolved AlanPickersgill

    (@alanpickersgill)


    I want to link to a You Tube video and have it open in a new window. It shouldn’t be difficult. I can link to other sources related to my blog post and have them open in a new page, but entering the video URL just plays the video in the same browser tab but you have to reload the page to get back to the blog post. I can do this easily in other web site pages constructed with my very old version of Macromedia Dreamweaver which I’ve used since before they sold it to Adobe.

    • This topic was modified 4 years, 7 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • You are inserting the video, that′s why wordpress shows it in the post.
    To open the video in a new window, insert a link to the video

    1) In a Paragraph block add some text: “This is the text link”
    2) Select the text and create a link with the URL of the youtube video.
    3) Set the link to open in a new window.
    4) Done!

    Here is a screenshot: https://pasteboard.co/J5hSER1.png

    Thread Starter AlanPickersgill

    (@alanpickersgill)

    Thank you, Matias, but this is exactly how I did it. All the links I put in my blog are done the same way. They work fine for all the others, but not for videos. At first, I thought it had something to do with You Tube, but the same thing happens with Vimeo. I don’t see anywhere to tweak a setting. I’m stymied for the time being.

    Can you post a picture of your edit screen?

    Thread Starter AlanPickersgill

    (@alanpickersgill)

    I don’t see a way to attach a file. I have a jpeg screen grab of the edit view and the code view. How do I get them to you?

    Take the screenshot and use this website to share it here: https://snipboard.io/

    1) Take the screenshot
    2) Go to: https://snipboard.io/
    3) Paste it there
    4) Share here the link (something like: https://snipboard.io/7nM4O3.jpg)

    Thread Starter AlanPickersgill

    (@alanpickersgill)

    @alanpickersgill, your theme is adding lightbox to all video links, that′s why it won′t open in another window:

    This is the html output in the frontend:

    <a href="https://www.youtube.com/watch?v=nXOT_Vx2P74" target="_blank" rel="noreferrer noopener" data-src="https://www.youtube.com/watch?v=nXOT_Vx2P74" data-lightbox="yes">Tie a Yellow Ribbon Round the Old Oak Tree</a>

    Please check the theme options if it is possible to disable lightbox and if not I would suggest asking the theme developer.

    Makes sense?

    • This reply was modified 4 years, 7 months ago by Matias Mann.
    Thread Starter AlanPickersgill

    (@alanpickersgill)

    It makes so much sense that it even worked. Sometimes I get so caught up in looking for the complicated that I miss the simple. Thank you very much, Matias. If I ever find myself in Buenos Aires, I’ll buy you a beer. Not a Corona, though. ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Link to a YouTube video’ is closed to new replies.