AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Sam_78 on April 24, 2023, 07:36:21 PM

Title: Add class to image uploaded
Post by: 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
Title: Re: Add class to image uploaded
Post by: Sam_78 on May 01, 2023, 10:34:58 AM
any suggestions?
Title: Re: Add class to image uploaded
Post by: abolabo on May 02, 2023, 03:18:29 AM
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
Code: [Select]
<img src="resources/image/18/80/5.jpg" style="width: 300px;" />
Title: Re: Add class to image uploaded
Post by: Sam_78 on May 03, 2023, 12:01:47 PM
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 ?