Shopping Cart Operations > General Support

Add class to image uploaded

(1/1)

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:
any suggestions?

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

--- End quote ---

You can affect on image via html text editor via html style attribute.
For example

--- Code: ---<img src="resources/image/18/80/5.jpg" style="width: 300px;" />
--- End code ---

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 ?

Navigation

[0] Message Index

Go to full version
Powered by SMFPacks Social Login Mod