Jump to content

Video autoplay in Category description


Recommended Posts

Hello !

I added a video in my description category, and I want it to play automatically (it's a silent video). But the decription editor would not keep the autoplay="autoplay" instruction (or the loop instruction) :
http://fredsathalshop.rockcom.fr/index.php?id_category=16&controller=category&id_lang=2

 

It works fine with the Home Page Editor module :

http://fredsathalshop.rockcom.fr/

 

Could you help me make it work on categories?

 

Many thanks in advance

Link to comment
Share on other sites

Classes/category.php
 

public static function getDescriptionClean($description)
{
return Tools::getDescriptionClean($description);
}

change that to

public static function getDescriptionClean($description)
{
return $description;
}
 
It will not strip them, hopefully
Link to comment
Share on other sites

Hi! I'm having the same issue for Product description, the autoplay and loop attributes are removed when i Save.

Nemo1, based on your suggestion i'm looking at classes\Product.php, but im not too sure if this is the right place.

Thanks guys!

 

UPDATE: I turned off "Use HTMLPurifier Library" in the back off under Preferences/General and now it works!

Edited by steviep (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...