UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
It is currently off working hours and most of us aren't around

Rest assured that we will get back to you as soon as the day starts tomorrow!
  Support is offline

Improving YouTube

Jordan Weinstein · ·
8:16 PM Sunday, 13 August 2017
High
Hello,

The standard YouTube link produces a video title link on the top left the video. Some users might click that rather than the play button and return back to YouTube - defeating the purpose of the embed.

If you append "showinfo=0" to the embed the title goes away. So going from the current link:

https://www.youtube.com/embed/pHCfWfbpu9k?feature=oembed

to

https://www.youtube.com/embed/pHCfWfbpu9k?feature=oembed&;showinfo=0

does the trick. I managed to do this by adding this Javascript to my EasySocial pages:


var hideLinkHeader = '&showinfo=0';

//Loop through every iframe in .frame-wrap
jQuery.each(jQuery('.video-container').find('iframe'), function(index, i)
{
//set url equal to this iteration's iframe's src
var url = jQuery(i).attr('src');

//set this iteration's iframe's src equal to url plus the hideLinkHeader global variable
jQuery(i).attr('src', url + hideLinkHeader);

});


And this works. However, is there a way to append this via PHP so that the output is modified directly rather than with Javascript. I could not find where the embed links are generated within EasySocial.

Jordan
The replies under this section are restricted to logged in users or users with an active subscription with us