- This topic has 3 replies, 2 voices, and was last updated 6 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forums › WordPress Themes – Premium › Deck Pro › Update video URL in Billboard Section
Tagged: Deck Pro Billboard video
Hi,
I have in my YouTube video in the Billboard Section but I need to add some info to the URL so that at the end of the video YouTube will not show related videos. YouTube says to add this to the end of the URL ?rel=0, but doing so breaks the video from showing, when I go back to just the URL which is this https://www.youtube.com/watch?v=cNDSBVyH_7o. So to be clear when I add the URL as this to get rid of the last screen that YouTube plops on I have this https://www.youtube.com/watch?v=cNDSBVyH_7o?rel=0. But it appears that this ?rel=0 is being stripped out and so the ads show at the end which looks really bad as this video is on the home page. You can see my efforts here: http://www.fad-photo.com/
I want to either add the rel=0 to remove related videos or look the video. I do not see any instructions on how to do that either.
I have looked to see if I can add code to the home page template, but when I do the entire home page breaks. Can you help please?
Dear Nancy McCord,
Video Embed Code is only made compatible with You Tube video URL. If you want to use embedded code than you need to customize template-homepage.php temmplate keeping on child theme. So your changes will not lost on theme update.
You can find this code on template-hompepage.php:
<?php echo wp_oembed_get( get_theme_mod( 'dp_video_embed_code' ), array( 'width' => 800, 'height'=> 450 ) ); ?>
Replace this whole line of code with your emebedded video Ifrmae:
<iframe width="560" height="315" src="https://www.youtube.com/embed/zPZ6MgUzJuE?rel=0" frameborder="0" allowfullscreen></iframe>
Note: Please insert video url on Video Embed code section of customizer so it satisfy if else condition. And please follow this procedure only if you are technically sound on WordPress, otherwise please take help of a developer.
Thanks
Hey, thank you very much for this answer, it worked.
Great to hear Nancy McCord.
Let us know if you got any queries or question regarding to our Styled Themes.
Thanks
With our premium themes, we offer access to site documentation, video tutorials and timely support. Even if you have just started on WordPress, our support staff have the patience to help you create appealing sites gracefully.
Company
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.To find out more, including how to control cookies, see here: Privacy Policy
© Copyright © 2023 Styled Themes. All Right Reserved.