Home Forums WordPress Themes – Premium Deck Pro Update video URL in Billboard Section

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41461
    Nancy McCord
    Participant

    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?

    #41540
    Sushil Adhikari
    Moderator

    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

    #41655
    Nancy McCord
    Participant

    Hey, thank you very much for this answer, it worked.

    #41661
    Sushil Adhikari
    Moderator

    Great to hear Nancy McCord.

    Let us know if you got any queries or question regarding to our Styled Themes.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.