Get Free Audit

Troubles with adding YouTube Videos, Forms, iFrames, etc. to Prestashop 1.6 Pages

May 30, 2014

821 Alex Simonchik

Troubles with adding YouTube Videos, Forms, iFrames, etc. to Prestashop 1.6 Pages

Prestashop has an issue with adding YouTube videos to various places where you need it.

We first encountered this issue on our own projects, but it’s also mentioned on the Prestashop forum – so here’s the solution to this trouble:

Comment the following lines in the class Validate (classes/Validate.php) of the method isCleanHtml:


So the method should look as follows:

Andrey_Dubina
Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey


The admin panel will display it as question, but this is because the editor does not load the object, but it will be ok on the frontend.

Andrey Dubina
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

6 Comments

  1. Hi,
    I’m trying to insert a YouTube video using a built-in code on a CMS page, but when I try to save the code the save button does not work. I’ve already enabled iframe and I’ve already tested everything I’ve been told in other forums.
    I needed help.
    Version prestashop 1.7.
    Thank you.

  2. @Krystian : Thank you !

    @ Denis Urevich : Please update your post with Krystian’s solution. Core files modifications usually disappear while updating…

  3. Oh, you need only to enable iframes in Preferences -> General, there is no need to do this modification.

    Thanks ;)

  4. Oh, you need only to enable iframes in Preferences -> General, there is no need to do this modification.

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *