Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

Adding a new URL parameter to the video widget

video playeryoutube
    • 10 years, 4 months ago shrayasr
      Participant

      Expired

      Hi.

      We are using the video player widget to embed a youtube video but the thing is after the video ends, I don’t want it to display the list of related videos. In order to do this, we need to insert a &rel=0 to the end of the iframe src tag.

      Is there a way to achieve this?

    • 10 years, 4 months ago Ruco
      Keymaster

      Hello,

      What widget have you used?
      Where have you added the video?

      Best regards!

    • 10 years, 4 months ago shrayasr
      Participant

      Expired

      Hi Ruco,

      We used the “Video player” widget. It plays a video from youtube. The thing is, by default related videos are shown at the end. But we don’t want this. So youtube asks us to add a &rel=0 to the end of the iframe src tag for this. This doesn’t seem to be possible with the video player widget.

      The question is how to achieve this. Hope the question is clear?

    • 10 years, 4 months ago Ruco
      Keymaster

      Hello,

      The theme doesn’t have any video widget. have you installed a plugin for that?
      Let us know.

      Ps. We don’t offer support for third arty plugins.

      Best regards!

    • 9 years, 12 months ago Portmantech
      Participant

      Expired

      Hi,

      You can use the RAW HTML widget to include the iframe from YouTube with the parameters that you require.That works but you then end up with a non-responsive video because the iframe uses a fixed size.

      The way around this is to use the technique mentioned here:

      https://css-tricks.com/NetMag/FluidWidthVideo/Article-FluidWidthVideo.php

      Put your YouTube iframe within the div as mentioned in iframe section e.g., this is entered into the RAW HTML widget.

      <div class="videoWrapper">
      
      <iframe width="560" height="349" src="https://www.youtube.com/embed/n_dZNLr2cME?rel=0&hd=1" frameborder="0" allowfullscreen></iframe>
      </div>

      Then add the css to the page via the cog at the top:

      .videoWrapper {
      position: relative;
      padding-bottom: 56.25%; /* 16:9 */
      padding-top: 25px;
      height: 0;
      }
      .videoWrapper iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      }

      The site mentions how to manage the aspect ratio, it worked for me.

      Regards Alan

      • This reply was modified 9 years, 11 months ago by Mirela.
      • This reply was modified 9 years, 11 months ago by Mirela.
    • 9 years, 12 months ago Portmantech
      Participant

      Expired

      Sorry for the extra html, my reply looked great in the editor but the forum doesn’t display it correctly and I can’t see a way to edit it?

    • 9 years, 11 months ago Mirela
      Participant

      Hello,

      Thank you for the information. To make the code understandable, please make sure to include it inside the <code> tags. If you go to the ‘text’ tab of text editor, instead of the ‘Visual’ you will see it in the option bar.

      I edited this one for you.

      Best regards!

Viewing 6 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password