Grab the RSS feed

Joomla Wrapper Youtube Allowfullscreen

Using Joomla Wrapper to embed Youtube videos are merely easy. However, when it comes adding additional attributes like allowing full screen means you might have to code into the core of wrapper component code or maybe add additional Javascript code.

This simple code will allow setting additional attributes to the existing iframe.

Below is the code I have used and it is with the Google TagManager.

 <script>  
  iframe = document.getElementById("blockrandom");  
  iframe.setAttribute('allowFullScreen', '');  
 </script>  

Please replace your iframe id (e.g.blockrandom).





0 comments:

  •