Black Friday Special
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

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Support is
Offline

It is currently a weekend from where we are at. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!

Your time
Stack Ideas time