Img width and height HTML code generation location?
-
When looking at the source code for an image embedded in a post. I see this.
<a href="IMAGELOCATION.jpg"><img class="alignnone size-full wp-image-503" src="IMAGELOCATION.jpg" alt="IMAGE NAME" width="932" height="1210" /></a>
My question: Where is the width=”932″ height=”1210″ getting generated in the wordpress code? I need to see if I can edit that (for reasons, I am trying to replace it with inline CSS style=”max-width:932px; max-height:1210px;”). For the life of me I cannot find where it is generated. I modified the image_hwstring in media.php but it seemed to have no effect.
Thanks,-Ken
P.S. Since I think this will require modifying core WordPress functions I thought this went more under hacks than themes.
- The topic ‘Img width and height HTML code generation location?’ is closed to new replies.