News:

AbanteCart v1.4.2 is released.

Main Menu

Add class to image uploaded

Started by Sam_78, April 24, 2023, 07:36:21 PM

Previous topic - Next topic

Sam_78

Hi on product page admin side if we add media (image) into product_description text_editor it takes full size on product page (storefront) is it possible to add a class to it? Not in html but via visual section as soon as they add media that class gets assigned

Sam_78


abolabo

Quote from: Sam_78 on April 24, 2023, 07:36:21 PM
Hi on product page admin side if we add media (image) into product_description text_editor it takes full size on product page (storefront) is it possible to add a class to it? Not in html but via visual section as soon as they add media that class gets assigned

You can affect on image via html text editor via html style attribute.
For example
<img src="resources/image/18/80/5.jpg" style="width: 300px;" />
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

Sam_78

Yes, so what file creates this <img> tag?  I need to add a class to it.   When we add media and hit save it creates <img src="resources/image/18/80/5.jpg" style="width: 300px;" />  I need to add a class="img-responsive"   Can you tell me what file ?

Forum Rules Code of conduct
AbanteCart.com 2010 -