O'Reilly logo

PrestaShop 1.3 ThemingBeginner’s Guide by Hayati Hashim

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — Setting the player for the YouTube module

By default, the module is on autoplay.

  1. If you prefer to change the setting so that the video plays only when it is clicked, you will have to go to the modules folder and open the editorialyoutube.tpl.
    <!-- Module Editorial -->
    <div id="editorial_block_center" class="editorial_block" align="center">
    <embed src="http://www.youtube.com/v/{if $xml->body->$title} {$xml->body- >$title|stripslashes}{/if}&autoplay=1&hl=en&fs=1" type="application/x- shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="540" height="437"></embed>
    </div>
    <!-- /Module Editorial -->
    
  2. Look for &autoplay=1, and change it to read &autoplay=0.
  3. Save the file.

What just happened?

By changing this setting, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required