Digital experiences for all disciplines
New Landing › How can we help? › Themeforest Theme Support › Dante › Parralax Full Width Video
New Landing › How can we help? › Themeforest Theme Support › Dante › Parralax Full Width Video
- This topic has 17 replies, 4 voices, and was last updated 10 years by Mohammad – SUPPORT.
-
Posted in: Dante
-
August 30, 2014 at 1:11 pm #105500
Hi,
I’m using a YouTube video in the parralax element of page builder.
I want to know if I can remove the relative videos that youtube provides at the end. I know how to do this with embedded iframe’s but not with the page builder.
Any help please.
Thanks
September 1, 2014 at 11:14 am #105747Hi,
Not sure if Youtube allow that. I suggest that you make a search in google relative to “remove the related videos youtube”. Sorry ๐
-Rui
September 1, 2014 at 12:24 pm #105796Yes they do allow it – it’s an option for all videos, it usually requires rel=”0″ at the end of the embed code url, however the video player does not use the embed URL for that.
September 1, 2014 at 12:57 pm #105814I made a search on google and found this settings in an article, and they suggest adding the rel=”0″ like you said above. Just add it after the video code like this image
http://i0.wp.com/www.wptavern.com/wp-content/uploads/2013/11/uncheck.jpgAlso found this WordPress plugin
http://wordpress.org/plugins/hide-youtube-related-videos/Hope it helps
-Rui
September 1, 2014 at 9:18 pm #105978Thanks Rui,
The problem is – I am not using an Iframe to embed the video, I am using the full screen video shortcode which has a different type of url with a youtube short url at the end. If I try to add the &rel=0 to the end – the video wont play.
I tried the plugin too, bud sadly that doesn’t work either.
September 2, 2014 at 11:04 am #106276Hi
Please provide us with a link and login so I can check this for you
– Kyle
September 2, 2014 at 3:24 pm #106372This reply has been marked as private.September 3, 2014 at 1:08 pm #106702Add this to your custom css:
.ytp-endscreen-content { display: none; }
– Kyle
September 3, 2014 at 1:42 pm #106711Still shows related videos this end i’m afraid.
September 3, 2014 at 1:49 pm #106714Hi,
Please insert given below code at functions.php of child theme or parent theme.function sf_get_embed_src($url) { if (strpos($url,'youtube')){ preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $video_id); if (isset($video_id[1])) { return 'http://www.youtube.com/embed/'. $video_id[1] .'?autoplay=1&wmode=transparent&rel=0'; } } else { preg_match('/http:\/\/vimeo.com\/(\d+)$/', $url, $video_id); if (isset($video_id[1])) { return 'http://player.vimeo.com/video/'. $video_id[1] .'?title=0&byline=0&portrait=0&autoplay=1&wmode=transparent'; } } }
Thanks ๐
With Best Regards
MohammadSeptember 3, 2014 at 1:52 pm #106716I will forward this to Ed to see if there’s a solution
– Kyle
September 3, 2014 at 2:07 pm #106724Hi,
I have resolved the issue so please check. I have inserted given below code at functions.php.function sf_get_embed_src($url) { if (strpos($url,'youtube')){ preg_match('/[\\?\\&]v=([^\\?\\&]+)/', $url, $video_id); if (isset($video_id[1])) { return 'http://www.youtube.com/embed/'. $video_id[1] .'?autoplay=1&wmode=transparent&rel=0'; } } else { preg_match('/http:\/\/vimeo.com\/(\d+)$/', $url, $video_id); if (isset($video_id[1])) { return 'http://player.vimeo.com/video/'. $video_id[1] .'?title=0&byline=0&portrait=0&autoplay=1&wmode=transparent'; } } }
Thanks ๐
With Best Regards
MohammadSeptember 3, 2014 at 2:27 pm #106740Just checked Mohammad – brilliant thank you so much
Very much appreciated!!September 3, 2014 at 2:30 pm #106741Great, thanks Mohammad
– Kyle
September 3, 2014 at 4:27 pm #106785Is there a similar solution for the video player in page builder.
For example here http://imaginewebdevelopment.info/mobile-patrols/
Thanks
-
Posted in: Dante
You must be logged in and have valid license to reply to this topic.