Author Topic: Add class to image uploaded  (Read 2147 times)

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Add class to image uploaded
« 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

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: Add class to image uploaded
« Reply #1 on: May 01, 2023, 10:34:58 AM »
any suggestions?

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2046
  • Karma: +318/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Add class to image uploaded
« Reply #2 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;" />
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Sam_78

  • Sr. Member
  • ****
  • Posts: 270
  • Karma: +42/-1
    • View Profile
Re: Add class to image uploaded
« Reply #3 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 ?

 

Powered by SMFPacks Social Login Mod