Skip to main content

How can I add inline cssCSS for each image?

Probably it's possible with someIs there a filter. or hook that I don't know exactly which one works.can use for uploaded media?

I need to use it for custom cssCSS properties based on Media Descriptionthe media's description. It will be like:

<img src="image_url" style="width:  60%;" />

or

<img src="image_url" style="width:  80%;" />

Media Descriptiondescription screenshothttp://pixs.ru/showimage/ScreenShot_6110036_3802541.png:

Edit Media screenshot

How can I add inline css for each image?

Probably it's possible with some filter. I don't know exactly which one works.

I need to use it for custom css properties based on Media Description. It will be like:

<img src="image_url" style="width:  60%;" />

or

<img src="image_url" style="width:  80%;" />

Media Description screenshothttp://pixs.ru/showimage/ScreenShot_6110036_3802541.png

How can I add inline CSS for each image?

Is there a filter or hook that I can use for uploaded media?

I need to use it for custom CSS properties based on the media's description. It will be like:

<img src="image_url" style="width:  60%;" />

or

<img src="image_url" style="width:  80%;" />

Media description screenshot:

Edit Media screenshot

Source Link
mvod
  • 95
  • 1
  • 10

How can I add inline css for each image?

Probably it's possible with some filter. I don't know exactly which one works.

I need to use it for custom css properties based on Media Description. It will be like:

<img src="image_url" style="width:  60%;" />

or

<img src="image_url" style="width:  80%;" />

Media Description screenshot — http://pixs.ru/showimage/ScreenShot_6110036_3802541.png